how to list latest published nodes?

Author Message

kevin wei

Tuesday 01 February 2005 6:26:55 am

i want to list the latest nodes published under node 34,35,78,80.
how can i do this?

i reference the code of list_node.tpl of toolbar, but it cannot work.
can somebody help me?
thx!

kevin wei

Tuesday 01 February 2005 7:39:43 pm

help me

Eivind Marienborg

Tuesday 01 February 2005 11:05:53 pm

One way to do it is to put all the nodes into the same folder, and then fetch on the folder, width depth 2. This would fetch all the nodes from all the nodes. You can also add a sort_by by last published.

kevin wei

Wednesday 02 February 2005 7:34:35 am

thanks Eivind !

yes,all these nodes are under one node, but if i do as said, as the same time i must exclude some nodes.

such as 89,87..., i can exxlude class in fetching, how to exclude array of nodes?

thx!

Balazs Halasy

Wednesday 02 February 2005 7:56:14 am

You could exclude them when you're looping through the array using a section. Look at the docpage for the section template function.

Allman

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 18 2025 11:33:19
Script start
Timing: Jan 18 2025 11:33:19
Module start 'layout'
Timing: Jan 18 2025 11:33:19
Module start 'content'
Timing: Jan 18 2025 11:33:20
Module end 'content'
Timing: Jan 18 2025 11:33:20
Script end

Main resources:

Total runtime1.2105 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0156152.6250
Module start 'layout' 0.00520.0083 740.640639.4453
Module start 'content' 0.01351.1954 780.0859560.7266
Module end 'content' 1.20890.0016 1,340.812512.4688
Script end 1.2105  1,353.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2688160.0002
Check MTime0.00130.1090160.0001
Mysql Total
Database connection0.00080.069710.0008
Mysqli_queries1.153495.2855650.0177
Looping result0.00070.0599630.0000
Template Total1.166896.420.5834
Template load0.00210.175320.0011
Template processing1.164696.209920.5823
Template load and register function0.00030.021210.0003
states
state_id_array0.00110.090510.0011
state_identifier_array0.00220.180220.0011
Override
Cache load0.00170.1419220.0001
Sytem overhead
Fetch class attribute can translate value0.00110.091830.0004
Fetch class attribute name0.00120.102070.0002
XML
Image XML parsing0.00110.092830.0004
class_abstraction
Instantiating content class attribute0.00000.001170.0000
General
dbfile0.00100.0811220.0000
String conversion0.00000.000940.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 6

Time used to render debug report: 0.0001 secs