Message Boards

Embed Web Content Display with specific article

Jean Park, modified 4 Years ago.

Embed Web Content Display with specific article

New Member Posts: 7 Join Date: 10/9/19 Recent Posts
Hi, Is there a way to embed a web content display portlet inside of another portlet and have it display a specified Journal Article, have the portlet display an article specified programatically. 
​​
Currently I Use:

<liferay-portlet:runtime portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet" /> 
And it loads the portlet but I have to manually go in and configure it. Is there a way to do it in JSP or java code?
thumbnail
Mohammed Yasin, modified 4 Years ago.

RE: Embed Web Content Display with specific article

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Hi,
You need to set the preference with specific articIeId ,
You can refer this as in that there have discussed on embedding Asset Publisher may be this can help you
Jean Park, modified 4 Years ago.

RE: Embed Web Content Display with specific article

New Member Posts: 7 Join Date: 10/9/19 Recent Posts
Question was resolved, I was using the wrong method of retrieving portlet preferences so the preferences weren't being set correctly.