Foren

Add dependency to theme

Thomas Mair, geändert vor 7 Jahren.

Add dependency to theme

New Member Beiträge: 2 Beitrittsdatum: 07.07.16 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: Add dependency to theme

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
I don't believe it is possible to have a dependency for a theme.
thumbnail
Ray Augé, geändert vor 7 Jahren.

RE: Add dependency to theme

Liferay Legend Beiträge: 1197 Beitrittsdatum: 08.02.05 Neueste Beiträge
It's not hard to add one.

I hate to suggested it but you could use the OSGi Require-Bundle header.
Thomas Mair, geändert vor 7 Jahren.

RE: Add dependency to theme

New Member Beiträge: 2 Beitrittsdatum: 07.07.16 Neueste Beiträge
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.