Retrieve view mode of a node ???

Author Message

H-Works Agency

Thursday 12 April 2007 10:26:53 am

How can i retrieve something that seems very simple : the view mode in which a node is shown ?

For exemple node 54 is in line, full, embed in a certain place ?

I can't find any variable holding this information.

Thanx for any help.

EZP is Great

Piotrek Karaƛ

Thursday 12 April 2007 10:42:55 am

I believe in the pagelayout you've got:

{$module_result.content_info.viewmode}

http://ez.no/doc/ez_publish/technical_manual/3_8/templates/the_pagelayout/variables_in_pagelayout

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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

Main resources:

Total runtime0.6772 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.0048 587.9063152.6250
Module start 'layout' 0.00480.0029 740.531339.4453
Module start 'content' 0.00770.6679 779.9766528.5625
Module end 'content' 0.67560.0015 1,308.53918.1563
Script end 0.6772  1,316.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4605160.0002
Check MTime0.00130.1926160.0001
Mysql Total
Database connection0.00040.066010.0004
Mysqli_queries0.631593.2552540.0117
Looping result0.00060.0862520.0000
Template Total0.641294.720.3206
Template load0.00240.348220.0012
Template processing0.638994.336920.3194
Template load and register function0.00010.012910.0001
states
state_id_array0.00280.408310.0028
state_identifier_array0.00130.197420.0007
Override
Cache load0.00190.2821130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.115420.0004
Fetch class attribute name0.00110.168240.0003
XML
Image XML parsing0.00140.201120.0007
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00120.1836240.0001
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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs