related objects in "News", I wish to display only articles

Author Message

Finn David Nilsen

Friday 30 January 2004 11:55:21 am

I try to display only related articles, the standard article.tpl display articles, images...everything...

This lines (my "test lines") in article.tpl won't work...

{section show=$related_objects}

{let related_objects=fetch( content, list,

hash(node.node_id, node.object.related_contentobject_array,
class_filter_type, "include", class_filter_array, array(2))

<div class="relatedarticles">
<h2>{"Related stories"|i18n("design/news/layout")}</h2>
<ul>
{section name=ContentObject loop=$related_objects show=$related_objects}
<li><a href={$ContentObject:item.main_node.url_alias|ezurl}>{$ContentObject:item.name}</a></li>
{/section}
</ul>
</div>
{/section}
{/let}

Some hint's....?

Finn David

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 00:23:31
Script start
Timing: Jan 19 2025 00:23:31
Module start 'layout'
Timing: Jan 19 2025 00:23:31
Module start 'content'
Timing: Jan 19 2025 00:23:32
Module end 'content'
Timing: Jan 19 2025 00:23:32
Script end

Main resources:

Total runtime0.5330 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.2734152.6563
Module start 'layout' 0.00560.0032 741.929739.5078
Module start 'content' 0.00880.5230 781.4375403.0625
Module end 'content' 0.53180.0012 1,184.50008.0938
Script end 0.5330  1,192.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.6570160.0002
Check MTime0.00130.2354160.0001
Mysql Total
Database connection0.00070.134310.0007
Mysqli_queries0.494992.8468460.0108
Looping result0.00040.0701440.0000
Template Total0.505494.820.2527
Template load0.00160.305220.0008
Template processing0.503894.507120.2519
Template load and register function0.00020.040710.0002
states
state_id_array0.00090.162310.0009
state_identifier_array0.00070.129320.0003
Override
Cache load0.00130.2498220.0001
Sytem overhead
Fetch class attribute can translate value0.00060.113310.0006
Fetch class attribute name0.00090.169610.0009
XML
Image XML parsing0.00010.023010.0001
class_abstraction
Instantiating content class attribute0.00000.001510.0000
General
dbfile0.00070.1223100.0001
String conversion0.00000.001640.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
1content/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
2content/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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs