Theme Id or Portlet Id references in portal-ext.properties

FQPI (Fully Qualified Portlet Id) #

When configuring plugin portlet references within the portal configurations, the portlet id used must be the Fully Qualified Portlet Id.

This takes the form of

portletId_WAR_webapplicationcontext

The webapplicationcontext

will have dashes, periods, and spaces stripped away. The portlet id may also require an instance id. The instance id can be made up, and is a 4 char alphanumeric string.

Examples:

  • Referencing a non-instanceable portlet which is in the core: default.guest.public.layout.column-1=58
  • Referencing an instanceable portlet which is in the core: default.guest.public.layout.column-1=58_INSTANCE_4gtH
  • Referencing a non-instanceable portlet which is in EXT: default.guest.public.layout.column-1=my_ext_portlet_id
  • Referencing an instanceable portlet which is in EXT: default.guest.public.layout.column-1=my_ext_portlet_id_INSTANCE_rgp6
  • Referencing a non-instanceable portlet which is in a plugin, where the plugin WAR context path is /my_plugin-1.3.6: default.guest.public.layout.column-1=my_plugin_portlet_id_WAR_my_plugin136
  • Referencing an instanceable portlet which is in a plugin, where the plugin WAR context path is /my_plugin-1.3.6: default.guest.public.layout.column-1=my_ext_portlet_id_INSTANCE_rgp6_WAR_my_plugin136

FQTI (Fully Qualified Theme Id) #

When configuring plugin theme references within the portal configurations, the theme id used must be the Fully Qualified Theme Id.

This takes the form of

themeId_WAR_webapplicationcontext

The webapplicationcontext

will have dashes, periods, and spaces stripped away.

Examples:

  • Referencing a theme which is in the core: default.regular.theme.id=theme_id
  • Referencing a theme which is in EXT: default.regular.theme.id=my_ext_theme_id
  • Referencing a theme which is in a plugin, where the plugin WAR context path is /my_plugin-1.3.6: default.regular.theme.id=my_plugin_theme_id_WAR_my_plugin136
0 附件
46545 查看
平均 (1 投票)
满分为 5,平均得分为 5.0。
评论
讨论主题回复 作者 日期
Finding the right value for this seems to be a... Ray Parker 2010年10月29日 上午5:54
Additionally for Portlets one put one on page;... Corné Aussems 2015年8月18日 上午1:07

Finding the right value for this seems to be a challenge, especially if you don't have an easy means of peeking around in the Liferay database, however I found a simple means which seems to return the correct value. Export a community which uses the theme in question. After the LAR file is downloaded, open it using your favorite archive tool, and look at the manifest.xml file in the root folder. The name of the theme associated with the community will be found on the <header> tag under the theme-id attribute. The theme name will be provided whether you have included the actual theme in the export or not.
在 10-10-29 上午5:54 发帖。
Additionally for Portlets one put one on page;
>> Portlet Wrench (configuration)
>> Look and Feel
>> Advanced Styling
>>> Add a CSS rule for just this portlet. and see the nomenclature in the class.
Of course source of HTML will do too
在 15-8-18 上午1:07 发帖以回复 Ray Parker