Tuesday, 14 October 2014

Embedding Portlet inside Web Content

Step 1: Create a new page by name "Embedded" When new page is ready  add "Web Content Display" portlet onto the right side of the page


Step 2: Click the second icon at the bottom to add a new Web Content. Give a new article id as "PORTLET_HOST", a good title and some good contents. Before click on publish  to save the article , switch to source mode  to insert embedding line in side it .

<runtime-portlet name="library_WAR_libraryportlet"></runtime-portlet>

Here "library_WAR_libraryportlet"is the id of the portlet that we have to embed. You can  get this d from Liferay's  portlet table in the database (select * from portlet;) 

No comments: