Can't fetch articles

Author Message

Kjell Inge Sandvik

Sunday 24 April 2005 5:36:03 am

Another day - another problem :-)

I have a news-folder that is under the news-section. I have overridden the node/view/line - template, but can't extrakt the articles. My code is:

{let children=fetch(content,list,hash(parent_node_id,$node.node_id,class_filter_type,include,class_filter_array,array('article')))}
{section name=Child loop=$children}
{node_view_gui view=line content_node=$Child:item}
<hr>
{/section}
{/let}

Why can't ez extract?

Sandvik Web & Data

Ɓukasz Serwatka

Sunday 24 April 2005 11:12:59 pm

Hi Kjell,

It`s good to have enabled debug output (shows all errors) during development. You can enable debug output in site.ini.append.php.

[DebugSettings]
DebugOutput=enabled

Try clear the cache and check permissions.

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

Kjell Inge Sandvik

Monday 25 April 2005 5:29:02 am

Yes I have the debugOutput enabled, but there's no errors shown.

Sandvik Web & Data

Eivind Marienborg

Monday 25 April 2005 5:34:26 am

You have overridden the line view template, so you don't have to do a new fetch.

If you are trying to create a override template for a folder (since you want to fetch articles), you should override the node/view/full.tpl template in stead.

Kjell Inge Sandvik

Monday 25 April 2005 9:48:55 am

Thank you - got it working now :-)

BTW: Is there any description of the different standard templates - what they look like and produce?

Sandvik Web & Data

Eivind Marienborg

Monday 25 April 2005 10:48:03 am

You can get output of which templates are used by inserting the following in your site.ini.append:

[TemplateSettings]
Debug=enabled

Hope this helps :)

Kjell Inge Sandvik

Monday 25 April 2005 11:09:12 am

Yes thank you! Interesting :-D

Another thing: do I have to base the overrides on one type of templates to get the right results? I.E.: Do I have to use a "full template" if I want to show results of that type, or can I just override a "full template" and write my own "line template" as a override?

Sandvik Web & Data

Eivind Marienborg

Monday 25 April 2005 11:55:28 am

Everything's possible :)

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 06:05:50
Script start
Timing: Jan 19 2025 06:05:50
Module start 'layout'
Timing: Jan 19 2025 06:05:50
Module start 'content'
Timing: Jan 19 2025 06:05:51
Module end 'content'
Timing: Jan 19 2025 06:05:51
Script end

Main resources:

Total runtime1.0105 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.1484152.6250
Module start 'layout' 0.00670.0041 741.773439.4453
Module start 'content' 0.01080.9983 781.2188641.1172
Module end 'content' 1.00910.0014 1,422.335920.1719
Script end 1.0105  1,442.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3418160.0002
Check MTime0.00140.1385160.0001
Mysql Total
Database connection0.00080.081010.0008
Mysqli_queries0.935792.6012740.0126
Looping result0.00110.1126720.0000
Template Total0.978596.820.4893
Template load0.00210.203520.0010
Template processing0.976596.631220.4882
Template load and register function0.00010.011810.0001
states
state_id_array0.00060.061810.0006
state_identifier_array0.00140.139320.0007
Override
Cache load0.00180.1810380.0000
Sytem overhead
Fetch class attribute can translate value0.00080.080430.0003
Fetch class attribute name0.00260.2549110.0002
XML
Image XML parsing0.00360.360930.0012
class_abstraction
Instantiating content class attribute0.00000.0039160.0000
General
dbfile0.00480.4708300.0002
String conversion0.00000.001040.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
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs