RSS - how can i fetch 10 objects from 1 level

Author Message

Mieczyslaw Morzonek

Friday 10 September 2004 8:44:44 am

By default export RSS featch only 5 objects from 1 level in ez publish 3.3-3. Where can i change it to 10 objects from 1 level? How to modify this module?

Thanks for any help

Alex Jones

Wednesday 15 September 2004 6:28:49 am

Sadly, this isn't something that yo ucan change in the templates as far as I am aware. You might be able to dig into the kernel and make a change there, but I would recommend against it.

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Mieczyslaw Morzonek

Wednesday 15 September 2004 11:54:08 pm

So, let`s do it Alex ;-) Do you know where can i faind this source code? What file i must change? This is very important for me

Thankas for any help and ideas

Bård Farstad

Thursday 16 September 2004 12:14:47 am

Mieczyslaw,

you need to alter the file kernel/classes/ezrssexportitem.php. At line 224 you will find the initalization of the number of items, $num = 5, change this number to e.g. 10 and you're done.

--bård

Documentation: http://ez.no/doc

Alex Jones

Thursday 16 September 2004 6:13:22 am

I have added an 'Enhancement' to the bug list, requesting that the ability to set the number of feeds should be available via the admin interface.

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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:20:48
Script start
Timing: Jan 19 2025 00:20:48
Module start 'layout'
Timing: Jan 19 2025 00:20:48
Module start 'content'
Timing: Jan 19 2025 00:20:49
Module end 'content'
Timing: Jan 19 2025 00:20:49
Script end

Main resources:

Total runtime0.7764 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.0061 588.0391152.6406
Module start 'layout' 0.00610.0039 740.679739.4766
Module start 'content' 0.01000.7648 780.1563591.7969
Module end 'content' 0.77480.0016 1,371.953112.1250
Script end 0.7764  1,384.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4638160.0002
Check MTime0.00150.1936160.0001
Mysql Total
Database connection0.00090.111710.0009
Mysqli_queries0.720192.7543650.0111
Looping result0.00080.1080630.0000
Template Total0.744195.820.3721
Template load0.00290.367120.0014
Template processing0.741395.476020.3706
Template load and register function0.00020.025510.0002
states
state_id_array0.00090.116010.0009
state_identifier_array0.00060.079920.0003
Override
Cache load0.00240.3144190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.077830.0002
Fetch class attribute name0.00190.242770.0003
XML
Image XML parsing0.00120.154830.0004
class_abstraction
Instantiating content class attribute0.00000.002280.0000
General
dbfile0.00100.1319230.0000
String conversion0.00000.001340.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 15
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs