Announcement

#1 2010-12-08 11:16:55

ranmajen
Member
2010-10-26
20

RSS Feed

How to increase the quantity of recent updates more than 5 in the rss feed?

Offline

 

#2 2010-12-08 18:13:41

rub
Piwigo Team
Lille
2005-08-26
5019

Re: RSS Feed

You can see that on local config.

Offline

 

#3 2010-12-09 07:19:58

rub
Piwigo Team
Lille
2005-08-26
5019

Re: RSS Feed

With the plugin LocalFiles Editor on local config tab add:

// Parameters used in get_recent_post_dates for the 2 kind of notification
$conf['recent_post_dates'] = array(
  'RSS' => array('max_dates' => 5, 'max_elements' => 6, 'max_cats' => 6),
  'NBM' => array('max_dates' => 7, 'max_elements' => 3, 'max_cats' => 9)
  );

Change xax_dates value;

Offline

 

#4 2010-12-09 07:31:06

ranmajen
Member
2010-10-26
20

Re: RSS Feed

Yes, I have found it and it works. Thanks.

But I would like to know why not put these variables or settings in the admin page? I am afraid that if piwigo has any upgrades will override the previous setting in the config file. I think it is more efficient and handy if I can set via admin, not only for the rss feed setting but also [top_number], ['anti-flood_time'] or ['rate_items'] etc.

Besides, back to the rss feed, I have modified the files also, since I think it is very clumpsy for the existing feed. I have changed to have the 10 recent images and simplified the rss. There are so many repeating details like: 1 album updated, my gallery title etc.

Offline

 

#5 2010-12-09 10:14:36

rub
Piwigo Team
Lille
2005-08-26
5019

Re: RSS Feed

ranmajen wrote:

But I would like to know why not put these variables or settings in the admin page? I am afraid that if piwigo has any upgrades will override the previous setting in the config file.

local config are not override on upgrade.
always modify local config and not default config!

But, have this value on admin page will be best of course.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact