how to replace $node?

Author Message

Red Bullbone

Tuesday 22 July 2003 7:06:06 am

I had a related question:

http://ez.no/content/view/full/30606/

but this brougth me to the next question:

when there is no $node-variable how I have to handle the statements in the tutorial. like this:

{attribute_view_gui attribute=$node.object.data_map.image}

I tried it like this:

{let this_node = fetch( 'content', 'node', hash(node_id, $DesignKeys:used.node))}
{attribute_view_gui attribute=$this_node.object.data_map.image}

but without success.
any help would be appreciated

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 03:44:17
Script start
Timing: Jan 31 2025 03:44:17
Module start 'layout'
Timing: Jan 31 2025 03:44:17
Module start 'content'
Timing: Jan 31 2025 03:44:17
Module end 'content'
Timing: Jan 31 2025 03:44:17
Script end

Main resources:

Total runtime0.0270 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.1250151.2109
Module start 'layout' 0.00620.0049 739.3359220.6719
Module start 'content' 0.01110.0139 960.0078993.6484
Module end 'content' 0.02500.0020 1,953.656329.9922
Script end 0.0269  1,983.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003312.3605140.0002
Check MTime0.00145.3316140.0001
Mysql Total
Database connection0.00082.916710.0008
Mysqli_queries0.003211.777330.0011
Looping result0.00000.055710.0000
Template Total0.00134.810.0013
Template load0.00103.750810.0010
Template processing0.00031.074410.0003
Override
Cache load0.00072.575710.0007
General
dbfile0.00031.207980.0000
String conversion0.00000.038040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs