GitHubでこのページを編集

Home / 5 / ucmitz / specification / baser core / contents / コンテンツ管理用コンポーネント

コンテンツ管理用コンポーネント

ucmitzにおける仕様変更

4系ではBcContentsComponentだったクラスを管理画面用(BcAdminContentsComponent)フロント画面用(BcFrontContentsComponent)に分離している

BcAdminContentsComponent

Admin/ContentFoldersController.php・Admin/ContentsController.phpなどの管理画面で使用

役割

  • コンテンツアイテムの読み込み
  • 管理画面で使用する変数を設定
  • イベント設置(BcContentsEventListener)
    • BcContentsEventListenerでは、フォーム画面に他のエレメントを結合するなど追加処理がある

編集処理

例)ContentFolder

シーケンス図

シーケンス図:コンテンツフォルダ編集

BcFrontContentsComponent

Controller/PagesController.phpやController/ContentFoldersController.phpなどフロント画面で使用

役割

  • プレビュー時のデータの設定
  • レイアウトテンプレートの設定
  • 説明文
  • タイトルの設定

ページ表示

例)Page

シーケンス図

シーケンス図:ページ表示