Forums / General / Display more node

Display more node

Author Message

Anekdoten <<>>

Tuesday 26 July 2005 1:38:50 am

Hi,

This code:

{*?template charset=utf-8?*}
<h1>{$node.name}</h1>

<h2>Obiettivi</h2>
{attribute_view_gui attribute=$node.object.data_map.obiettivi}

<h2>Luogo</h2>
{attribute_view_gui attribute=$node.object.data_map.luogo}

<h2>Data</h2>
{attribute_view_gui attribute=$node.object.data_map.data}

<h2>Partecipanti</h2>
{attribute_view_gui attribute=$node.object.data_map.partecipanti}

<h2>Promotori</h2>
{attribute_view_gui attribute=$node.object.data_map.promotori}

<h2>Partner</h2>
{attribute_view_gui attribute=$node.object.data_map.partner}

{let page_limit=20
    children=fetch('content','list',hash(parent_node_id,$node.node_id,sort_by,$node.sort_array,limit,$page_limit,offset,$view_parameters.offset))    list_count=fetch('content','list_count',hash(parent_node_id,$node.node_id))}

{section name=Child loop=$children sequence=array(bglight,bgdark)}
{node_view_gui view=line content_node=$Child:item}
{/section}
{include name=navigator
    uri='design:navigator/google.tpl'
    page_uri=concat('/content/view','/full/',$node.node_id)
    item_count=$list_count
    view_parameters=$view_parameters
    item_limit=$page_limit}

don't work, why???
Help me please ... Thank you

Łukasz Serwatka

Tuesday 26 July 2005 2:31:00 am

What exacly not working? Turn on debug output in site.ini.append.php file to see what errors do you have.

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

Anekdoten <<>>

Tuesday 26 July 2005 3:09:14 am

Lukasz thanks for the answer, the system returs the following errors ->

Error: eZTemplate:eZTemplateCompiler Jul 26 2005 11:59:21

PHP variable $attributeAccess['obiettivi'] does not exist, cannot fetch the value.

Error: eZTemplate:eZTemplateCompiler Jul 26 2005 11:59:21

PHP variable $attributeAccess['luogo'] does not exist, cannot fetch the value.

Error: eZTemplate:eZTemplateCompiler Jul 26 2005 11:59:21

PHP variable $attributeAccess['data'] does not exist, cannot fetch the value.

Error: eZTemplate:eZTemplateCompiler Jul 26 2005 11:59:21

PHP variable $attributeAccess['partecipanti'] does not exist, cannot fetch the value.

Error: eZTemplate:eZTemplateCompiler Jul 26 2005 11:59:21

PHP variable $attributeAccess['promotori'] does not exist, cannot fetch the value.

Error: eZTemplate:eZTemplateCompiler Jul 26 2005 11:59:21

PHP variable $attributeAccess['partner'] does not exist, cannot fetch the value.

he does not find the data ... but I do not understand what is due.

Łukasz Serwatka

Tuesday 26 July 2005 7:41:02 am

You have this errors because you are tring display class attributes which don`t exists for that object. Make sure that attribute name "obiettivi" is the same in tpl code and in class.

Or this might be the cache problem, you can try to clear all cache, remove all files from var/cache and var/(sitename)/cache.

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

Anekdoten <<>>

Tuesday 26 July 2005 9:55:44 am

Certain Luke, I have tried to clear all cache and checked the attributes of class with those writings in template, but nothing ... I do not know how to do.

Would you have any idea?
Many thanks

Łukasz Serwatka

Tuesday 26 July 2005 10:42:44 am

Then probadly wrong template is loaded, turn on "Template debug" and check which template is loaded, when you accessing this object.

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

Anekdoten <<>>

Tuesday 26 July 2005 11:25:24 am

Nothing, the template is loaded correctly ->

Notice: Jul 26 2005 20:15:30 eZTemplate: Loading template "iniziative.tpl" with resource "design"

Anekdoten <<>>

Tuesday 26 July 2005 11:47:14 am

{default pollNodeID = 132}
{let slogan=fetch(content,node,hash(node_id,$pollNodeID))} {attribute_view_gui attribute=$slogan.object.data_map.obiettivi} {/let}
{/default}

specifying the id of knot works, but I want the list of content, and that way I have problems ...

eZ debug

Timing: Jan 18 2025 14:56:33
Script start
Timing: Jan 18 2025 14:56:33
Module start 'content'
Timing: Jan 18 2025 14:56:34
Module end 'content'
Timing: Jan 18 2025 14:56:34
Script end

Main resources:

Total runtime1.1863 sec
Peak memory usage4,096.0000 KB
Database Queries209

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.5859180.8516
Module start 'content' 0.00560.9889 768.4375601.0156
Module end 'content' 0.99450.1917 1,369.4531341.0781
Script end 1.1862  1,710.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3413210.0002
Check MTime0.00160.1331210.0001
Mysql Total
Database connection0.00070.057310.0007
Mysqli_queries1.101292.83312090.0053
Looping result0.00230.18982070.0000
Template Total1.155497.420.5777
Template load0.00210.178820.0011
Template processing1.153397.219920.5766
Template load and register function0.00010.012610.0001
states
state_id_array0.00110.090510.0011
state_identifier_array0.00160.134220.0008
Override
Cache load0.00190.1564450.0000
Sytem overhead
Fetch class attribute can translate value0.00130.113730.0004
Fetch class attribute name0.00120.103990.0001
XML
Image XML parsing0.00110.089830.0004
class_abstraction
Instantiating content class attribute0.00000.0019110.0000
General
dbfile0.00380.3166290.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs