This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. « Volver 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インターフェースを実装したクラス。
15387 Accesos