
« Torna a コントロールパネル
コントロールパネルにポートレットの追加
小沢仁
作成されてポータル管理用ポートレットをコントロールパネルに追加するには以下のようにwebapps/ROOT/WEB-INF/liferay-portlet.xmlに情報を追加します:
ポートレットの設定の例
<portlet><portlet-name>newportlet</portlet-name> <icon>/images/icon.png</icon> <control-panel-entry-category>content</control-panel-entry-category> <control-panel-entry-weight>16</control-panel-entry-weight> <control-panel-entry-class>jp.co.ogis.portlet.myadmin.MyAdminPanelEntry</control-panel-entry-class> <layout-cacheable>true</layout-cacheable> <add-default-resource>true</add-default-resource> </portlet>
portlet-name:追加するポートレットの名前
icon:表示するアイコン
control-panel-entry-category:コントロールパネルでの分類
- my:ユーザ
- content:コンテンツ
- portal:ポータルインスタンス
- server:サーバ管理
control-panel-entry-weight:分類内でポートレット名を表示する位置。大きい数字の方が下に表示されます。
control-panel-entry-class:ControlPanelEntryインターフェースを実装したクラス。
15350 Visualizzazioni