Linking to login and register

Linking to login and register

Monday 29 September 2003 4:55:46 am - 4 replies

Modified on Monday 29 September 2003 5:04:52 am by James Packham

Author Message

Paul Forsyth

Monday 29 September 2003 5:04:28 am

odd, i do the same and it works fine.

what does your page source show on your site.

are you linking in this way?

<a href={'user/login'|ezurl}>Login</a>
<a href={'user/register'|ezurl}>Register</a>

paul

James Packham

Monday 29 September 2003 5:07:06 am

No, I just wanted to add to the end of the main sidebar menu. To do this I had to create a new object link, rather than adding the xml to an article... Am I approaching this from the wrong angle?

I didn't want them there for any particular reason, I just thought it'd look quite good ;)

Paolo Tramontani

Monday 29 September 2003 5:45:35 am

If you want two additional entries in your main menu, open the template where the menu is built (usually mainlayout.tpl).
You'll find the loop code for menu creation inside a {section} loop.
If so you can insert two additional cycle (exploded after the {/section} tag) with the same HTML you find inside the loop (same styles, classes, html tags and attributes), then you have to substitute dynamic <a href> tag with the ones in previous reply:
<a href={'user/login'|ezurl}>Login</a>
<a href={'user/register'|ezurl}>Register</a>
Is this enough clear?

Perhaps you can do this in a more plain manner without modifying the template using the content administration and introducing a login node directly under the root folder (or simply introducing a new location for the login page) but I don't know the exact procedure to make this.รน

Hope this help
Paolo

James Packham

Monday 29 September 2003 6:18:12 am

Hooray! Yes this worked. Thanks for recommending this, the other good thing is that no matter how many folders I add to content the login and register links will stay as at the bottom ;)

Thanks Paolo

~James~

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.