latest 3 news on each site

Author Message

grinsekatze grinsekatze

Friday 29 July 2005 12:03:11 am

hi,

i have a question:
is it possible to show the latest 3 news on each site of the homepage?
On the left side should be the content of the site like company informations or product etc. and in a box on the right side should be the topics of the latest 3 news, when i klick on more the whole news are shown. I made a new content folder with the news articles, but how can i show the information from folder news nodeID xy on each side???
i hope somebody can help me :)

Arran Price

Tuesday 02 August 2005 4:38:42 pm

Hi,
I think want you want is to use a fetch statement (look for fetch in the documentation - there are numerous examples).

You need to edit your templates to get the box on the right side, then in that box do a fetch using published time in order to get the last 3 items published. Then show the line view of those news items so that when you click on them, you will get the full view.

Arran

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 01:05:02
Script start
Timing: Jan 19 2025 01:05:02
Module start 'layout'
Timing: Jan 19 2025 01:05:02
Module start 'content'
Timing: Jan 19 2025 01:05:03
Module end 'content'
Timing: Jan 19 2025 01:05:03
Script end

Main resources:

Total runtime0.6527 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.1484152.6250
Module start 'layout' 0.00500.0039 741.773439.4453
Module start 'content' 0.00890.6424 781.2188458.2578
Module end 'content' 0.65130.0013 1,239.47668.3203
Script end 0.6526  1,247.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5445160.0002
Check MTime0.00150.2274160.0001
Mysql Total
Database connection0.00100.145610.0010
Mysqli_queries0.611093.6092540.0113
Looping result0.00080.1158520.0000
Template Total0.620195.020.3100
Template load0.00220.329420.0011
Template processing0.617994.676920.3090
Template load and register function0.00040.059810.0004
states
state_id_array0.00080.125610.0008
state_identifier_array0.00090.130620.0004
Override
Cache load0.00180.2697130.0001
Sytem overhead
Fetch class attribute can translate value0.00100.150620.0005
Fetch class attribute name0.00210.319020.0010
XML
Image XML parsing0.00020.030020.0001
class_abstraction
Instantiating content class attribute0.00000.003420.0000
General
dbfile0.00060.0943100.0001
String conversion0.00000.001140.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
2content/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: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs