Come on people, these questions can't be THAT hard!

Author Message

Peter Bailey

Friday 28 February 2003 2:09:56 pm

For somebody who's used eZ publish for 1 site!?!? I've made 4 posts in the last two weeks an received replies for none of them, but I really need help with this.

http://developer.ez.no/forum/message/15037/

I'm really trying to get this on my own, please, just a little nudge! (Note: I am and have read many of the pages @ help Wiki)

I can make a simple, generic version like this

{section name=tabmenu show=1}
<ul id="tabs">
{section name=tabs loop=5}
<li><a href="#">link</a></li>
{/section}
</ul>
{/section}

But what I really need is for the tabmenu to show only if the current user is of a certain group or content class (I've got both, whichever is fine)

I need the looping controlled by all the SECTIONS the current user has access to given by their ROLE

If the current URI matches the link's URI it will need to have a class attribute added to it "currentTab"

I *know* that receiving some hand-holding on this will to really help me clarify many other issues I'm having. Please, don't make me beg!

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

Main resources:

Total runtime0.8408 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 588.1641152.6563
Module start 'layout' 0.00850.0030 740.820339.5078
Module start 'content' 0.01150.8280 780.3281402.2344
Module end 'content' 0.83950.0013 1,182.56258.1094
Script end 0.8408  1,190.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4480160.0002
Check MTime0.00160.1891160.0001
Mysql Total
Database connection0.00130.154310.0013
Mysqli_queries0.798895.0029460.0174
Looping result0.00050.0544440.0000
Template Total0.801995.420.4010
Template load0.00210.253220.0011
Template processing0.799895.119820.3999
Template load and register function0.00020.029010.0002
states
state_id_array0.00090.103910.0009
state_identifier_array0.00180.213620.0009
Override
Cache load0.00180.2131180.0001
Sytem overhead
Fetch class attribute can translate value0.00070.084210.0007
Fetch class attribute name0.00070.083410.0007
XML
Image XML parsing0.00010.010610.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00060.0733100.0001
String conversion0.00000.001140.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs