Forums / Setup & design / Linking to login and register

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~

eZ debug

Timing: Jan 19 2025 03:42:11
Script start
Timing: Jan 19 2025 03:42:11
Module start 'content'
Timing: Jan 19 2025 03:42:12
Module end 'content'
Timing: Jan 19 2025 03:42:12
Script end

Main resources:

Total runtime0.7279 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0101 588.9531180.8359
Module start 'content' 0.01010.5920 769.7891567.3281
Module end 'content' 0.60220.1257 1,337.1172337.4063
Script end 0.7278  1,674.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5601210.0002
Check MTime0.00150.2062210.0001
Mysql Total
Database connection0.00140.185910.0014
Mysqli_queries0.650189.31692020.0032
Looping result0.00200.27212000.0000
Template Total0.692995.220.3464
Template load0.00210.289520.0011
Template processing0.690794.898020.3454
Template load and register function0.00010.011810.0001
states
state_id_array0.00110.149510.0011
state_identifier_array0.00070.094520.0003
Override
Cache load0.00180.2464340.0001
Sytem overhead
Fetch class attribute can translate value0.00150.202640.0004
Fetch class attribute name0.00100.132160.0002
XML
Image XML parsing0.00090.124240.0002
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00410.5610270.0002
String conversion0.00000.001130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs