Forums / General / RSS - how can i fetch 10 objects from 1 level

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>