RSS

rasamassen

Joined: 2009-08-01
Posts: 12
Posted: Sun, 2009-08-09 03:30

I'm using FlashYourWeb's MiniSlideShow, which takes advantage of Gallery3's RSS features. How can I gain better control of the images output in http://mysite.com/gallery3/index.php/rss/feed/gallery/album/2? Right now, as far as I can tell, the same 20 images are output every time, and it's always 20 images. What if I want the full album in the RSS or just 10 images? Or if I want the 20 most-viewed images or the most-recently added images rather than the first 20 images in the album? Or I want 20 at random?

I know there's little documentation right now, so I'm just asking.

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Sun, 2009-08-09 04:12

I've never used MiniSlideShow, but if it's using the RSS feeds I can offer the following advice --
The number of items displayed in the RSS feed is 20, which is probably why your slideshow is limited to 20. This value is hard-coded into the modules\rss\controllers\rss.php . It can be easily changed to something else, just look for the line "public static $page_size = 20;" towards the top of the file and change 20 to whatever you want it to be. For example, if you wanted the slideshow to include everything and none of your albums had more then 600 photos in it, you could set it to something higher then 600 and you'd be good. This change would effect the RSS feeds for every album though, there's no way to control the RSS feeds of albums separately.

There is a feed for recently added images. It should be at:
http://mysite.com/gallery3/index.php/rss/feed/gallery/latest

I don't believe that there are any other special feeds though.