Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Deba Prasad
How to get frindly URL for WikiPage object programmatically?
March 6, 2013 4:18 AM
Answer

Deba Prasad

Rank: New Member

Posts: 6

Join Date: January 24, 2013

Recent Posts

Hi all
I am creating a custom portlet and I am able to get a list of specific 'WikiPage' objects in my portlet as per my requirement.
But I don't know how can I get the friendly URL for every object in the list programmatically to render the title of the page(which I will get from WikiPage object) linking to the respective WIKI page URL???.

Can anyone plz help me here...

Thanks:
Dev
Bart Simpson
RE: How to get frindly URL for WikiPage object programmatically?
March 7, 2013 1:39 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

Each page is layout in liferay. Use the layout object and get the friendly url.
String com.liferay.portal.model.LayoutModel.getFriendlyURL()