留言板

How to get frindly URL for WikiPage object programmatically?

Deba Prasad,修改在11 年前。

How to get frindly URL for WikiPage object programmatically?

New Member 帖子: 6 加入日期: 13-1-24 最近的帖子
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
thumbnail
Bart Simpson,修改在11 年前。

RE: How to get frindly URL for WikiPage object programmatically?

Liferay Master 帖子: 522 加入日期: 11-8-29 最近的帖子
Each page is layout in liferay. Use the layout object and get the friendly url.
String com.liferay.portal.model.LayoutModel.getFriendlyURL()