フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
Yves LeGrand
How to embbed the same article in layout?
2012/03/01 8:49
答え

Yves LeGrand

ランク: Regular Member

投稿: 158

参加年月日: 2009/11/18

最近の投稿

Hello Liferay and friends.

We need to have the same footer-contents on some pages which are using the same layout template.
So we have embedded an asset-publisher in this layout-template. But unfortunately this asset-publisher does not share its preferences among the different layouts which are using the layout template.

We have embedded it by: $processor.processPortlet("101"_INSTANCE_abcd)

Is this not possible? How can we set the same set of preferences to this asset publisher or maybe a webcontent display portlet?
For instance, we need something like this: Show the latest webcontent which is tagged by "footer".

Please let me know how you would do that.

I think there must be a solution :-)

Cheers,
Yves
Ram Manusani
RE: How to embbed the same article in layout?
2012/03/01 11:10
答え

Ram Manusani

ランク: Regular Member

投稿: 124

参加年月日: 2011/10/27

最近の投稿

Yes, it is possible.

Try adding this to the layout template page(.tpl file)

Let's say you are wanting to remove the borders for the portlet...

$velocityPortletPreferences.setValue("portlet-setup-show-borders", "false")
$theme.runtime(101_INSTANCE_abcd", "", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()

Follow the same and try setting values for the specific property you want to change.