Forums de discussion
Add dependency to theme
Thomas Mair, modifié il y a 7 années.
Add dependency to theme
New Member Publications: 2 Date d'inscription: 07/07/16 Publications récentes
Hello,
I am developing a new theme and would like to include a custom portlet into the theme itself. How can I make shure that the custom portlet is available when i apply the theme? Is there any mechanism to specify a dependency on a portlet (module) within the theme?
What I am trying to do is similar to the language selector in the default theme. The language selector however is a core Liferay package and is therfor always available.
Thanks in advance
I am developing a new theme and would like to include a custom portlet into the theme itself. How can I make shure that the custom portlet is available when i apply the theme? Is there any mechanism to specify a dependency on a portlet (module) within the theme?
What I am trying to do is similar to the language selector in the default theme. The language selector however is a core Liferay package and is therfor always available.
Thanks in advance
David H Nebinger, modifié il y a 7 années.
RE: Add dependency to theme
Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
I don't believe it is possible to have a dependency for a theme.
Ray Augé, modifié il y a 7 années.
RE: Add dependency to theme
Liferay Legend Publications: 1197 Date d'inscription: 08/02/05 Publications récentes
It's not hard to add one.
I hate to suggested it but you could use the OSGi Require-Bundle header.
I hate to suggested it but you could use the OSGi Require-Bundle header.
Thomas Mair, modifié il y a 7 années.
RE: Add dependency to theme
New Member Publications: 2 Date d'inscription: 07/07/16 Publications récentes
I added a MANIFEST.MF to my theme and added the depending module in the Import-Package property.
So the theme will not be deployable unless the required module is deployed.
So the theme will not be deployable unless the required module is deployed.