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 Anhänge
46547 Angesehen
Durchschnitt (1 Stimme)
Die durchschnittliche Bewertung ist 5.0 von max. 5 Sternen.
Kommentare
Antworten im Thread Autor Datum
Finding the right value for this seems to be a... Ray Parker 29. Oktober 2010 05:54
Additionally for Portlets one put one on page;... Corné Aussems 18. August 2015 01: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.
Gepostet am 29.10.10 05: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
Gepostet am 18.08.15 01:07 als Antwort auf Ray Parker.