Linking to login and register

Author Message

James Packham

Monday 29 September 2003 4:55:46 am

Hi I was wondering if anyone can help me? I'm trying to create two links on my frontpage, one that goes directly to the login page and the other to the register page (user/login user/register). Simply creating an object 'link' on the frontpage doesn't work - it takes me to the default object view...

This has the link on it, but how do I make it so that I can bypass the default object view?

I know this is a bit of a newbie query, but any help would be gratefully appreciated :)

Thanks!

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~

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