掲示板
How to embbed the same article in layout?
12年前 に Yves LeGrand によって更新されました。
How to embbed the same article in layout?
Regular Member 投稿: 156 参加年月日: 09/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
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
12年前 に Ram Manusani によって更新されました。
RE: How to embbed the same article in layout?
Regular Member 投稿: 124 参加年月日: 11/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.
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.