<body id="pageid">

Author Message

Ned Nieuws

Monday 24 January 2005 5:41:03 am

An existing site uses an "id" attribute on the body tag to show the visitor in which part of the site he is. It uses a menu derived from http://www.alistapart.com/articles/sprites/. How would I accomplish this with ezPublish?

Ned Nieuws

Monday 24 January 2005 10:32:54 am

One way would be:

<body id="site{$module_result.node_id}">

Is there a better way or is this the way to go?

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

Main resources:

Total runtime0.7746 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0078151.1953
Module start 'layout' 0.00580.0023 739.203136.6328
Module start 'content' 0.00820.7656 775.8359841.4141
Module end 'content' 0.77380.0007 1,617.25007.8750
Script end 0.7745  1,625.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4363160.0002
Check MTime0.00140.1831160.0001
Mysql Total
Database connection0.00110.136210.0011
Mysqli_queries0.730994.3668520.0141
Looping result0.00040.0535500.0000
Template Total0.745596.220.3727
Template load0.00230.293220.0011
Template processing0.743295.952120.3716
Template load and register function0.00150.199910.0015
states
state_id_array0.00060.081610.0006
state_identifier_array0.00060.076320.0003
Override
Cache load0.00190.241580.0002
Sytem overhead
Fetch class attribute can translate value0.00050.070410.0005
Fetch class attribute name0.00200.262020.0010
XML
Image XML parsing0.00020.024010.0002
class_abstraction
Instantiating content class attribute0.00000.001020.0000
General
dbfile0.00300.3890100.0003
String conversion0.00000.001240.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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs