Fórum

Add dependency to theme

Thomas Mair, modificado 7 Anos atrás.

Add dependency to theme

New Member Postagens: 2 Data de Entrada: 07/07/16 Postagens Recentes
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
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Add dependency to theme

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
I don't believe it is possible to have a dependency for a theme.
thumbnail
Ray Augé, modificado 7 Anos atrás.

RE: Add dependency to theme

Liferay Legend Postagens: 1197 Data de Entrada: 08/02/05 Postagens Recentes
It's not hard to add one.

I hate to suggested it but you could use the OSGi Require-Bundle header.
Thomas Mair, modificado 7 Anos atrás.

RE: Add dependency to theme

New Member Postagens: 2 Data de Entrada: 07/07/16 Postagens Recentes
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.