Fórum

How to embed Web Content Display in Layout

thumbnail
Andrew Jordan, modificado 7 Anos atrás.

How to embed Web Content Display in Layout

Junior Member Postagens: 39 Data de Entrada: 02/11/15 Postagens Recentes
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, modificado 7 Anos atrás.

RE: How to embed Web Content Display in Layout

Junior Member Postagens: 73 Data de Entrada: 04/06/13 Postagens Recentes
Hey Andrew,

Try using theme.runtime() like this

$theme.runtime('56_INSTANCE_YOURID')