Wednesday, October 10, 2012

Create Account URL In Liferay Theme level

Step1: Add these lines in Portal_normal.vm files, where to want like inside your div or table

#set ($CreateAccountURL = $portletURLFactory.create($request, "58", $page.getPlid(), "RENDER_PHASE"))
            $CreateAccountURL.setPortletMode("view")
            $CreateAccountURL.setWindowState("maximized")
            $CreateAccountURL.setParameter("struts_action", "/login/create_account")
            $CreateAccountURL.setParameter("", "")
                <a href="$CreateAccountURL">REGISTER</a><font color="#BBBBBB">|</font>

Step2: Write css to display in custom.css
 

3 comments:

  1. #
    # Enter a friendly URL of a page that will be used to create new accounts
    # whenever the user clicks the "create account" link in the login portlet.
    # This allows providing custom portlets to create accounts. By default, the
    # portal's create account will be used.
    #
    company.security.strangers.url=/create_account

    ReplyDelete
  2. Hi. Jonathan thank's for comment.

    This property will work for portlet's. This bolg for just create the URL link for create account in theme level.

    see Example here http://www.mpowerglobal.com. IF you click the Register you will get into create account.

    ReplyDelete