掲示板

Add dependency to theme

7年前 に Thomas Mair によって更新されました。

Add dependency to theme

New Member 投稿: 2 参加年月日: 16/07/07 最新の投稿
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
7年前 に David H Nebinger によって更新されました。

RE: Add dependency to theme

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
I don't believe it is possible to have a dependency for a theme.
thumbnail
7年前 に Ray Augé によって更新されました。

RE: Add dependency to theme

Liferay Legend 投稿: 1197 参加年月日: 05/02/08 最新の投稿
It's not hard to add one.

I hate to suggested it but you could use the OSGi Require-Bundle header.
7年前 に Thomas Mair によって更新されました。

RE: Add dependency to theme

New Member 投稿: 2 参加年月日: 16/07/07 最新の投稿
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.