KonaKart Community Forum

Installation / Configuration => Using KonaKart as a Portlet => Topic started by: Manu on October 13, 2011, 03:08:40 pm

Title: Call SelectCat.do... in a portlet
Post by: Manu on October 13, 2011, 03:08:40 pm
Hi !

KonaKart is now running into Liferay, and i have created a new portlet with links.
I want to "refresh" the konakart portlet on the good page.

(http://imagik.fr/uploads/497337)

I see that 2degrees website URL are like this :
https://www.2degreesmobile.co.nz/shop?p_p_id=konakart_portlet_WAR_konakart_portlet&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_konakart_portlet_WAR_konakart_portlet__spage=%2FSelectProd.do&_konakart_portlet_WAR_konakart_portlet__sorig=%2FSelectCat.do%3FcatId%3D21&productId=141

So, I create the links in my portlet like this :

<a href="<liferay:actionURL portletName="konakart_WAR_konakart" portletMode="view">
<liferay:param name="_spage" value="/SelectCat.do?catId=22"/>
<liferay:param name="catId" value="22"/>
<liferay:param name="_sorig" value="/SelectCat.do?catId=22"/>
</liferay:actionURL>">
Tools</a>


But when I click on my link, the portlet stay on the Welcome.do page.

How tell to the portlet to call the specific action (here SelectCat.do) ? And to get parameters like catId, do i have to modify the SelectCategoryAction or it must work with the original version ?