Template code: I can't see the problem!

Author Message

Shurbann Martes

Monday 29 December 2003 12:33:51 pm

Hello there,

There seems to be a problem inthis code, casue it's not generating anything (and it should ;) )

{default informe_node_id=97 }

{let children=fetch( content, list, hash( parent_node_id, $informe_node_id,sort_by, $node.sort_array,offset,1,limit, 2, class_filter_type, include, class_filter_array, array('informe')))}
{section name=Child loop=$children}
{node_view_gui view=embed content_node=$Child:item}
{/section}
{/let}
{/default}

class inform is readable by anonymous (by the way with administrator it doesn't show anything neither)

I made embed_image override:

[embed_informe]
Source=content/view/embed.tpl
MatchFile=embed_informe.tpl
Subdir=templates
Match[class]=17

Do you see the problem?

Regards,
Shurbann

Kai Duebbert

Sunday 04 January 2004 8:30:57 pm

I'm quite sure, your problem is:
class_filter_array, array('informe')

You should use the class number, not the name. (If it hasn't changed in the last releases.)

See http://www.ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/fetch_function_examples

Kai

Shurbann Martes

Monday 05 January 2004 5:45:48 am

Hi kai,

Thnx for your reply. I already found the solution. It hasosomething to do with the view=embed. I changed the view=embed to view=list and everything works fine noew.
I think it has someting to do with the content/embed.tpl file. I'm not sure.

Instead of numbers also name of classes can be use from version 3.2.4 and above.

-Shurbann

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

Main resources:

Total runtime0.7506 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.2500151.2266
Module start 'layout' 0.00620.0040 739.4766220.7188
Module start 'content' 0.01020.7397 960.19534,211.7188
Module end 'content' 0.74980.0007 5,171.91418.1406
Script end 0.7506  5,180.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5317160.0002
Check MTime0.00130.1788160.0001
Mysql Total
Database connection0.00130.167210.0013
Mysqli_queries0.668589.0626570.0117
Looping result0.00050.0719550.0000
Template Total0.694692.520.3473
Template load0.00210.283920.0011
Template processing0.692492.248920.3462
Template load and register function0.00160.210210.0016
states
state_id_array0.00320.427510.0032
state_identifier_array0.00110.141720.0005
Override
Cache load0.00160.2177340.0000
Sytem overhead
Fetch class attribute can translate value0.00150.203420.0008
Fetch class attribute name0.00180.242430.0006
XML
Image XML parsing0.00020.028920.0001
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00180.2336100.0002
String conversion0.00000.001440.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
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 5

Time used to render debug report: 0.0001 secs