Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Charu Babbar
call of edit_article
December 10, 2011 10:46 AM
Answer

Charu Babbar

Rank: Regular Member

Posts: 167

Join Date: September 13, 2011

Recent Posts

Hi All,

I wants in place of /journal/view_article, I wants journal_content/edit_article.

How can I write code for this Plz suggest me...

PortletURL portletURL = PortletURLFactoryUtil.create(
request, "15", plid, PortletRequest.RENDER_PHASE);

portletURL.setWindowState(WindowState.MAXIMIZED);
portletURL.setPortletMode(PortletMode.VIEW);
portletURL.setParameter("struts_action", "/journal/view_article");

Thanks
with regards,

charu
Pankaj Kathiriya
RE: call of edit_article
December 11, 2011 10:48 PM
Answer

Pankaj Kathiriya

Rank: Liferay Master

Posts: 645

Join Date: August 4, 2010

Recent Posts

Hi,

Rather you can use as following snippet.

AssetRendererFactory assetRendererFactory = AssetRendererFactoryRegistryUtil.getAssetRendererFactoryByClassName("com.liferay.portlet.jounal");
PortletURL addArticleURL = assetRendererFactory.getURLAdd((LiferayPortletRequest)renderRequest, (LiferayPortletResponse)portletResponse);
addArticleURL .setWindowState(WindowState.MAXIMIZED);
addArticleURL .setPortletMode(PortletMode.VIEW);

See if this helps you.

Thanks,
Pankaj
Charu Babbar
RE: call of edit_article
December 12, 2011 11:29 PM
Answer

Charu Babbar

Rank: Regular Member

Posts: 167

Join Date: September 13, 2011

Recent Posts

Thanks Pankaj..
with regards
charu