留言板

Accessing to the Web Content Display Portlet parameters

Marie G,修改在12 年前。

Accessing to the Web Content Display Portlet parameters

New Member 帖子: 3 加入日期: 11-12-27 最近的帖子
hi everybody,

How can I access to the built-in Web Content Display portlet parameters from another portlet ?

Regards.
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: Accessing to the Web Content Display Portlet parameters

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Web Content used to be called Journal. Just search for the Journal API to use.

http://docs.liferay.com/portal/6.0/javadocs/com/liferay/portlet/journal/service/package-summary.html
Marie G,修改在12 年前。

RE: Accessing to the Web Content Display Portlet parameters

New Member 帖子: 3 加入日期: 11-12-27 最近的帖子
Hi Hitoshi,

So there is a function in that package that will allow me to reach the Web Content Portlet parameters from my portlet ?

Thanks
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: Accessing to the Web Content Display Portlet parameters

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
You have to tell us exactly what you're trying to do. Liferay itself uses these api's so if there's no api for what you want to do, you probably can't do it in Liferay.
Marie G,修改在12 年前。

RE: Accessing to the Web Content Display Portlet parameters

New Member 帖子: 3 加入日期: 11-12-27 最近的帖子
Well : I have my owned portlet that is placed nearby the Web Content Display portlet. The latter displays an article.
What I want to do is to read the article id parameter present in the Web Content Display portlet.

Is it possible ? If yes, how can I do ?

Thanks again.
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: Accessing to the Web Content Display Portlet parameters

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Do you know Liferay's APIs?

I think this is how:
1.Get information about portlets on a page (layout)
2.Get the Web Content portlet which you want information about
3.Get information about the article:
You'll be able to get the article using getArticleByUrlTitle(long groupId, String urlTitle)
http://docs.liferay.com/portal/6.0/javadocs/com/liferay/portlet/journal/service/JournalArticleLocalServiceUtil.html

If this doesn't make any sense to you, you'll probably be better off getting some professional help to develop your portlet.