Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Shankar Baba
where to change the login url in theme
8. November 2012 22:52
Antwort

Shankar Baba

Rang: Regular Member

Nachrichten: 144

Eintrittsdatum: 17. Oktober 2012

Neue Beiträge

Hi, if i want to change the login url from http://localhost:8080/web/guest/home to http://localhost:8080/web/login, so for this where should i change the url path in my file ie in which file.
Jignesh Vachhani
RE: where to change the login url in theme
8. November 2012 23:01
Antwort

Jignesh Vachhani

Rang: Liferay Master

Nachrichten: 792

Eintrittsdatum: 10. März 2008

Neue Beiträge

Shivaji C:
Hi, if i want to change the login url from http://localhost:8080/web/guest/home to http://localhost:8080/web/login, so for this where should i change the url path in my file ie in which file.


Shivaji,

If you see the init.vm file from D:\tomcat\liferay-portal-6.1.1-ce-ga2\tomcat-7.0.27\webapps\ROOT\html\themes\_unstyled\templates location,
and search $sign_in_url .
You will find below line which is responsible to generate login URL.
#set ($sign_in_url = $htmlUtil.escape($theme_display.getURLSignIn()))


While in your theme , you can see portal_normal.vm file where $sign_in_url variable is being used.
So if you have URL already available then you don't need to set $sign_in_url variable again.
You can simple replace your URL with href of below code.

#if (!$is_signed_in)
<a href="$sign_in_url" id="sign-in" rel="nofollow">$sign_in_text</a>
#end