Creating custom Menu depending on login

Author Message

vinit sharma

Sunday 03 August 2003 10:02:48 am

I have an application where i have logged in user and guest user . The logged in user must access his personal menu .while the guest user must no view these links (my info) in menu . Any guide dudes and gals to this approach.

Bjørn Kaarstein

Monday 04 August 2003 3:56:49 am

You can try to assign the personal area to it's own section, and then give rights to the specified users for viewing that section.

In that way, your guest user won't be able to see the menus.

I have run into a problem when it comes to redirect on login, but sadly I have found no good solution to this problem. I had to give the redirectUri a static value, which lead to one extra click for the user. If anyone has a good solution to this, I'd be very glad to hear about it :)

Regards Bjørn

Adri Rots

Monday 04 August 2003 10:43:33 am

Hi Vinit,

If you want to show something when a user is logged in you can use this code:

{section show=$thisuser.is_logged_in}
whatever you want to show
{/section}

Regards Adri

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 19:06:43
Script start
Timing: Jan 18 2025 19:06:43
Module start 'layout'
Timing: Jan 18 2025 19:06:43
Module start 'content'
Timing: Jan 18 2025 19:06:44
Module end 'content'
Timing: Jan 18 2025 19:06:44
Script end

Main resources:

Total runtime1.0374 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.0313152.6406
Module start 'layout' 0.00690.0031 740.671939.4766
Module start 'content' 0.01011.0257 780.1484499.9375
Module end 'content' 1.03580.0016 1,280.08598.1406
Script end 1.0374  1,288.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.01441.3833160.0009
Check MTime0.01201.1575160.0008
Mysql Total
Database connection0.00060.059510.0006
Mysqli_queries0.972893.7731590.0165
Looping result0.00060.0558570.0000
Template Total0.992295.620.4961
Template load0.00210.202820.0011
Template processing0.990195.433720.4950
Template load and register function0.00020.016310.0002
states
state_id_array0.00230.219910.0023
state_identifier_array0.00110.102720.0005
Override
Cache load0.00180.1705160.0001
Sytem overhead
Fetch class attribute can translate value0.00160.156830.0005
Fetch class attribute name0.00130.121030.0004
XML
Image XML parsing0.00040.036330.0001
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00190.1793100.0002
String conversion0.00000.000940.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs