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.

eZ debug

Timing: Jan 18 2025 22:19:43
Script start
Timing: Jan 18 2025 22:19:43
Module start 'layout'
Timing: Jan 18 2025 22:19:43
Module start 'content'
Timing: Jan 18 2025 22:19:44
Module end 'content'
Timing: Jan 18 2025 22:19:44
Script end

Main resources:

Total runtime0.7964 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 587.9141152.6250
Module start 'layout' 0.00480.0026 740.539139.4453
Module start 'content' 0.00740.7876 779.9844562.2500
Module end 'content' 0.79500.0014 1,342.234412.1641
Script end 0.7963  1,354.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3855160.0002
Check MTime0.00130.1578160.0001
Mysql Total
Database connection0.00060.080610.0006
Mysqli_queries0.741393.0832650.0114
Looping result0.00060.0706630.0000
Template Total0.768696.520.3843
Template load0.00210.262520.0010
Template processing0.766496.242220.3832
Template load and register function0.00010.011910.0001
states
state_id_array0.00070.090510.0007
state_identifier_array0.00120.153120.0006
Override
Cache load0.00180.2255340.0001
Sytem overhead
Fetch class attribute can translate value0.00050.067030.0002
Fetch class attribute name0.00110.135560.0002
XML
Image XML parsing0.00080.101330.0003
class_abstraction
Instantiating content class attribute0.00000.002580.0000
General
dbfile0.00080.0996160.0000
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs