掲示板

How to get url of webcontent to screen.

11年前 に kumar Raju によって更新されました。

How to get url of webcontent to screen.

New Member 投稿: 17 参加年月日: 12/09/28 最新の投稿
Hi All,

I have requirement to get content in liferay (i.e Webcontent).

I am able to fetch the web content name & summary (please refer attached snapshot), not able to get the url.

Can you please tell me how to get the url of web content to screen. On fetching the url to screen, by clicking it should open that webcontent.


Thanks & Regards
Kumar

添付ファイル:

11年前 に kumar Raju によって更新されました。

RE: How to get url of webcontent to screen.

New Member 投稿: 17 参加年月日: 12/09/28 最新の投稿
In assetEntry : there is attribute "url" which is getting empty.

Can you guys give some inputs from where the attribute "url" is coming & how to get the "url" of the Content.
11年前 に Rahul Sharma によって更新されました。

RE: How to get url of webcontent to screen.

Junior Member 投稿: 59 参加年月日: 12/01/11 最新の投稿
The simpler approach is that you can first click on the link of any of the webcontent, this will open the webcontent in the page then just take the current url by using PortalUtil.getCurrentUrl(),and in this url find for the parameter such as articleId and community Id/group Id,remove unneccessary parameters from this url and replace the article id which you had already got in your code for displaying different content and then use this new url.

Hope that helps!