20 February, 2012

Create account URL in velocity template

Hi Everyone,

If you want to generate Create account URL in velocity file , you can use below code :


#set ($create_account_url = $portletURLFactory.create($request,  "58", $page.getPlid(),  "ACTION_PHASE"))
$create_account_url.setWindowState(WindowState.MAXIMIZED);
$create_account_url.setPortletMode(PortletMode.VIEW);
$create_account_url.setParameter("saveLastPath", "0");
$create_account_url.setParameter("struts_action", "/login/create_account");
and then you can use use $create_account_url variable .

Rate Me:

0 Discussion: