Foren

How to embed Web Content Display in Layout

thumbnail
Andrew Jordan, geändert vor 7 Jahren.

How to embed Web Content Display in Layout

Junior Member Beiträge: 39 Beitrittsdatum: 02.11.15 Neueste Beiträge
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
Travis Cory, geändert vor 7 Jahren.

RE: How to embed Web Content Display in Layout

Junior Member Beiträge: 73 Beitrittsdatum: 04.06.13 Neueste Beiträge
Hey Andrew,

Try using theme.runtime() like this

$theme.runtime('56_INSTANCE_YOURID')