if node exists in $module_result.path then view code (JS)

Author Message

Ɓukasz Serwatka

Wednesday 08 December 2004 9:43:09 am

Hi,

I have three folders with children.

Folder 1
Node id 12
- child id 13
- child id 14
- child id 15
- child id NN

Folder 2
Node id 21
- child id 22
- child id 23
- child id 24
- child id NN

Folder 3
Node id 123
- child id 124
- child id 125
- child id 126
- child id NN

Problem:

In pagelayout.tpl i must view code (JS) other for folder 1 and his children and other for folder 2 and 3. I have idea do this with $module_result.path. Is this a good idea?

Thanks for any help.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime0.6432 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.0063 588.0547152.6406
Module start 'layout' 0.00630.0028 740.695339.4766
Module start 'content' 0.00920.6326 780.1719475.3203
Module end 'content' 0.64180.0014 1,255.49228.1094
Script end 0.6432  1,263.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4983160.0002
Check MTime0.00130.2077160.0001
Mysql Total
Database connection0.00090.132610.0009
Mysqli_queries0.604093.8952460.0131
Looping result0.00040.0596440.0000
Template Total0.614595.520.3073
Template load0.00180.273320.0009
Template processing0.612895.266020.3064
Template load and register function0.00020.030210.0002
states
state_id_array0.00070.101710.0007
state_identifier_array0.00090.134320.0004
Override
Cache load0.00140.2205270.0001
Sytem overhead
Fetch class attribute can translate value0.00060.087710.0006
Fetch class attribute name0.00050.081620.0003
XML
Image XML parsing0.00060.087110.0006
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00080.1217180.0000
String conversion0.00000.001440.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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
3content/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs