node_id of the thumbnail

Author Message

Aya Brea

Monday 01 December 2003 11:50:27 am

Do thumbnail image in an article have any node_id? How to know it?

Alex Jones

Tuesday 02 December 2003 1:37:18 pm

The thumbnail itself would not have a Node ID, unless perhaps it is included as a Related Object.

In general, to learn what attributes (like the Node ID) are available for an object, try adding an item like this to your template:

{$:item|attribute(show)}

You can also use it with $node instead of $:item.

Using attribute(show) you will see a table that displays every attribute assigned to that item. This will allow you to determine how to get the attribute you seek.

Hope this helps,

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Aya Brea

Tuesday 02 December 2003 3:53:23 pm

Yeah thanks, I just want to setup a clickable thumbnail to full view... So I have to create another view mode for the parent object which show only the thumbnail.

It work great now, waiting for my new site this weekend :D

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

Main resources:

Total runtime0.9008 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.9141152.6250
Module start 'layout' 0.00590.0035 740.539139.4453
Module start 'content' 0.00940.8901 779.9844526.6484
Module end 'content' 0.89950.0012 1,306.63288.3203
Script end 0.9007  1,314.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3610160.0002
Check MTime0.00130.1428160.0001
Mysql Total
Database connection0.00110.127210.0011
Mysqli_queries0.854394.8428570.0150
Looping result0.00060.0685550.0000
Template Total0.865996.120.4330
Template load0.00190.209720.0009
Template processing0.864095.919120.4320
Template load and register function0.00010.016410.0001
states
state_id_array0.00180.202210.0018
state_identifier_array0.00130.143220.0006
Override
Cache load0.00160.1735160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.082420.0004
Fetch class attribute name0.00110.122840.0003
XML
Image XML parsing0.00050.061020.0003
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00190.2075160.0001
String conversion0.00000.001140.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
3content/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/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: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs