Excluding a specific article from a list

Author Message

Tristan Koen

Wednesday 06 August 2003 1:04:54 pm

Hi All,

I have run into a problem that really has me stumped and I am hoping someone on this list can give me a clue.

I have a folder News with 3 subfolders, A, B and C
A, B & C each have a number of news articles in them.

On my landing page, I want to show the latest news item (title, intro and image) followed by a list of the remaining articles (title only) organised by the headings A, B and C.

To get the latest article, I do a fetch('content',tree,hash(parent_node_id, 40, sort_by,array(published,false())))
This works fine.

To get the rest of the articles I perfrom a nested loop, with a fetch('content',list,hash(parent_node_id,40,class_filter_type,include,class_filter_array,array(1))) to get the list of my folders and then a
fetch(parent_node_id, $node_id)) to get an "inner" list of articles.
This works perfectly well too EXCEPT that the latest article is also displayed.

Someone PLEASE tell me how to get rid of it.

Regards,

Tristan

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

Main resources:

Total runtime0.0225 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.2656151.2266
Module start 'layout' 0.00460.0037 739.4922220.7188
Module start 'content' 0.00830.0127 960.2109993.7266
Module end 'content' 0.02100.0015 1,953.937529.9922
Script end 0.0224  1,983.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002812.2857140.0002
Check MTime0.00125.2818140.0001
Mysql Total
Database connection0.00062.804910.0006
Mysqli_queries0.00229.894830.0007
Looping result0.00000.048810.0000
Template Total0.00114.810.0011
Template load0.00083.736010.0008
Template processing0.00020.961910.0002
Override
Cache load0.00062.640410.0006
General
dbfile0.00135.605680.0002
String conversion0.00000.031940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs