Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Zoheb Athar Siddiqui
how to read webcontent
July 19, 2012 10:05 PM
Answer

Zoheb Athar Siddiqui

Rank: New Member

Posts: 24

Join Date: May 15, 2012

Recent Posts

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
Tejas Kanani
RE: how to read webcontent
July 19, 2012 11:26 PM
Answer

Tejas Kanani

Rank: Liferay Master

Posts: 655

Join Date: January 6, 2009

Recent Posts

Hi Zoheb,

If you want to display Web content in your jsp, you can use below tag from liferay-ui.tld.
1<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
RE: how to read webcontent
July 19, 2012 11:40 PM
Answer

Zoheb Athar Siddiqui

Rank: New Member

Posts: 24

Join Date: May 15, 2012

Recent Posts

thanks tejas . it worked for me

zoheb