highlighted menues?

Author Message

Red Bullbone

Tuesday 22 July 2003 3:56:14 am

I tried something like this in an include file

{section show=$node.object.class_name|eq("Startseite" )}<b>Titelbild</b>{section-else}<a href="/">Titelbild</a>{/section}

it works find as long as I disable ViewCaching but as soon I enabled it I get the following error:

Error: eZTemplate @ design/magazin/templates/logo.tpl:2[0] Jul 22 2003 12:54:56
Unknown template variable 'node' in namespace ''

what am I missing? is there an more elegant solution for the navigation?
thank you
red

Selmah Maxim

Tuesday 22 July 2003 6:16:47 am

read this :
http://ez.no/developer/ez_publish_3/forum/developer/node_not_available_when_viewcaching_is_enabled

Red Bullbone

Tuesday 22 July 2003 6:30:25 am

thank you.

well now I've got a list with attributes... but how can I use them?

I tried this but without any success:

{section show=$module_result.class|eq("14" )}<b>Titelbild</b>{section-else}<a href="/">Titelbild</a>{/section}
| {section show=$module_result.class|eq("15" )}<b>Editorial</b>{section-else}<a href={"content/view/full/47"|ezroot}>Editorial</a>{/section}

it seems the 'eq' statements are always true...

Red Bullbone

Tuesday 22 July 2003 6:38:33 am

yeah, I think I got it:

{section show=$DesignKeys:used.class|eq("14" )}<b>Titelbild</b>{section-else}<a href="/">Titelbild</a>{/section}

This works...
Thank you very much

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

Main resources:

Total runtime0.8723 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.3203152.6094
Module start 'layout' 0.00640.0030 741.929739.4141
Module start 'content' 0.00940.8614 781.3438480.7422
Module end 'content' 0.87080.0015 1,262.085912.1875
Script end 0.8723  1,274.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3936160.0002
Check MTime0.00140.1606160.0001
Mysql Total
Database connection0.00070.080610.0007
Mysqli_queries0.820194.0110600.0137
Looping result0.00080.0892580.0000
Template Total0.834795.720.4173
Template load0.00210.235220.0010
Template processing0.832695.447820.4163
Template load and register function0.00030.030010.0003
states
state_id_array0.00090.108610.0009
state_identifier_array0.00240.277320.0012
Override
Cache load0.00170.1974260.0001
Sytem overhead
Fetch class attribute can translate value0.00090.101020.0004
Fetch class attribute name0.00220.248440.0005
XML
Image XML parsing0.00030.034320.0001
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00060.0737100.0001
String conversion0.00000.001340.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/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: 19
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs