Embedding the Web content or journal article in a portlet


We can insert the webcontent in a custom portlet.

1. Create the New webcontent - click on the Add button select the basic web content. Enter some dummy data and click on the save to save the changes.

After creation of the webcontent it generates the articleId as shown below.

Use this tag to generate the webcontent

<liferay-ui:journal-article articleId="113701" groupId="<%=themeDisplay.getScopeGroupId() %>"></liferay-ui:journal-article>





Comments

  1. Hello Iam creating a filter in the asset publisher the "<liferay-ui:journal-article" helped me a lot to display the articles filtered ,
    thank you a lot

    ReplyDelete
    Replies
    1. @Haji Soukaina .. thanks for the comment ...Good to hear you that it is helpful.

      Delete

Post a Comment

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate