Fórum

Create create account url link in webcontent

thumbnail
Mazhar Alam, modificado 10 Anos atrás.

Create create account url link in webcontent

Regular Member Postagens: 191 Data de Entrada: 25/11/11 Postagens Recentes
I am trying to create a create account url in the web content,

with reference to this, also i have created template for sign in.
But now when am trying to edit the vm template the code is not compiled, it displays simply -
$create_account_url.setParameter("p_p_state","pop_up")
$create_account_url.setParameter("struts_action", "/login/create_account")


Below is the code -

#set ($httpRequest = $portalUtil.getHttpServletRequest())
#set ($create_account_url = $portletURLFactory.create($httpRequest, "58", $page.getPlid(), "ACTION_PHASE"))
$create_account_url.setParameter("p_p_state","pop_up")
$create_account_url.setParameter("struts_action", "/login/create_account")

<h1><a href="$create_account_url">create account</a></h1>

If any one has achieved this, do let me knw.

Thanks