掲示板

How to embed Web Content Display in Layout

thumbnail
7年前 に Andrew Jordan によって更新されました。

How to embed Web Content Display in Layout

Junior Member 投稿: 39 参加年月日: 15/11/02 最新の投稿
Trying to embed a specific instance of a web content display that contains nav items. Liferay articles on embedding the portlet in a layout mention grabbing the ID in the portlet's Look and Feel, however this does not render the portlet on every page that has this layout.

I'm a bit confused, because I can't get the portlet's ID unless I drag it onto a page. Then when I add its ID to the layout, I end up with two of the portlets in that column, in that layout. Other pages just show an empty Web Content Display.

Is there anyway to just drop in the ID and have THAT specific portlet display on EVERY page that uses that layout?

The code I'm using in the layout is:
$processor.processPortlet("56_INSTANCE_4uiivAkDAwCm")


Any ideas?
thumbnail
7年前 に Travis Cory によって更新されました。

RE: How to embed Web Content Display in Layout

Junior Member 投稿: 73 参加年月日: 13/06/04 最新の投稿
Hey Andrew,

Try using theme.runtime() like this

$theme.runtime('56_INSTANCE_YOURID')