留言板

how to read webcontent

Zoheb Athar Siddiqui,修改在11 年前。

how to read webcontent

New Member 帖子: 24 加入日期: 12-5-15 最近的帖子
i am new in liferay 6.1.0 as first time i am using it i have downloaded liferay 6.1.0 bundulled version with tomcat , i searched in google but i am not able to read the webcontent in liferay , can anyone help me that how this is done, can we use liferay-ui.tld for reading webcontent i tried this but could not get success

zoheb
thumbnail
Tejas Kanani,修改在11 年前。

RE: how to read webcontent

Liferay Master 帖子: 654 加入日期: 09-1-6 最近的帖子
Hi Zoheb,

If you want to display Web content in your jsp, you can use below tag from liferay-ui.tld.
<liferay-ui:journal-article groupId="{site ID}" articleId="{webConentId}" />

And that will display your web content in your page.

You can get {site ID} from Control Panel --> Sites --> Your Site --> Edit --> Site ID
You can get {webConentId} from Control Panel --> Web Content portlet and go to your desired web content and just get articleId from second colum(named Id)

HTH

Regards,
Tejas
Zoheb Athar Siddiqui,修改在11 年前。

RE: how to read webcontent

New Member 帖子: 24 加入日期: 12-5-15 最近的帖子
thanks tejas . it worked for me

zoheb