[Resolved] Catching content of node_view_gui

Author Message

Laurent Clouet

Friday 06 June 2008 6:33:09 am

Hi

I would like to put content of a node_view_gui in a variable but I don't really know how to do.
I tried this :

{def $text_news = (node_view_gui content_node=$news view=block)}

but it doesn't work at all.

Does anybody have a trick for this ?

Andreas Adelsberger

Friday 06 June 2008 6:49:45 am

hi, I guess set-block will do the trick!

http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_functions/variables/set_block

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.

Laurent Clouet

Friday 06 June 2008 7:57:24 am

Great it works properly now.

My new code is :

{set-block variable=$text_news}
  {node_view_gui content_node=$news view=block}
{/set-block}

Thanks a lot for your help

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

Main resources:

Total runtime0.6450 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.0063 590.4219152.6406
Module start 'layout' 0.00630.0033 743.062539.4766
Module start 'content' 0.00960.6337 782.5391540.4609
Module end 'content' 0.64330.0016 1,323.000012.4375
Script end 0.6449  1,335.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.6010160.0002
Check MTime0.00140.2144160.0001
Mysql Total
Database connection0.00070.115010.0007
Mysqli_queries0.587491.0677570.0103
Looping result0.00050.0839550.0000
Template Total0.610694.720.3053
Template load0.00230.352920.0011
Template processing0.608394.316220.3042
Template load and register function0.00020.035010.0002
states
state_id_array0.00060.091610.0006
state_identifier_array0.00120.191520.0006
Override
Cache load0.00190.2932200.0001
Sytem overhead
Fetch class attribute can translate value0.00120.181120.0006
Fetch class attribute name0.00130.198150.0003
XML
Image XML parsing0.00320.499020.0016
class_abstraction
Instantiating content class attribute0.00000.002260.0000
General
dbfile0.00300.4642220.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs