How to increase the quantity of recent updates more than 5 in the rss feed?
Offline
You can see that on local config.
Offline
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
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
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