Hiding content under specific ID's

Author Message

Hugo Gallo

Wednesday 07 May 2003 10:42:34 am

I'm using the following code to hide content under a specific node (62 in this case)

{section show=ne($node.node_id,62)}
<a href={"content/view/full/62/"|ezurl} class="white11Link">Home</a>
{/section}

This code works great at first, until you drill down into deeper content. Then this code becomes inconsistant. Sometimes showing, sometimes not when you go back to view node 62.

Am I using this code correctly?

Paulo Almeida

Wednesday 07 May 2003 10:57:42 am

Do you use cache?
If yes i think you can resolve that using {$module_result.node_id} instead of $node (that is not acessible in cache)

PACPI.COM Internet Consulting
http://pacpi.com

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 04:31:45
Script start
Timing: Jan 18 2025 04:31:45
Module start 'layout'
Timing: Jan 18 2025 04:31:45
Module start 'content'
Timing: Jan 18 2025 04:31:46
Module end 'content'
Timing: Jan 18 2025 04:31:46
Script end

Main resources:

Total runtime1.4581 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 589.4453152.6250
Module start 'layout' 0.00810.0037 742.070339.4453
Module start 'content' 0.01171.4451 781.5156520.0078
Module end 'content' 1.45690.0012 1,301.52348.1563
Script end 1.4581  1,309.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2405160.0002
Check MTime0.00150.1031160.0001
Mysql Total
Database connection0.00100.070410.0010
Mysqli_queries1.410396.7179540.0261
Looping result0.00060.0416520.0000
Template Total1.414697.020.7073
Template load0.00250.172120.0013
Template processing1.412196.841320.7060
Template load and register function0.00030.020110.0003
states
state_id_array0.00170.114110.0017
state_identifier_array0.00130.090320.0007
Override
Cache load0.00190.1332130.0001
Sytem overhead
Fetch class attribute can translate value0.00120.085520.0006
Fetch class attribute name0.00290.200530.0010
XML
Image XML parsing0.00070.047320.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00080.0543160.0000
String conversion0.00000.000740.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 6

Time used to render debug report: 0.0001 secs