hello
i've three RSS links on my website : Gallery, News, News and Gallery.
i've two different results with the links Gallery and News and Gallery.
the first one shows the latest photos added on my website
the second one shows the most recent photos (regarding the date of the photos) on my website.
why there is this two different results ?
Comments
Update: Just looking at the code I might have an idea how to fix this behaviour for the next release.
`
<?php printRSSLink('Gallery','',gettext('Gallery'), '', true); ?>
<?php if(function_exists('printZenpageRSSLink')) { ?>
<?php printZenpageRSSLink('News','',' | ',gettext('News'),' | ', true); ?>
<?php printZenpageRSSLink('NewsWithImages','','',gettext("News and Gallery"),'', true); ?>
<?php } ?>
`
in fact, very similar with the code of the official theme zenpage (sidebar.php)
Note that RSS might use latestimages by id (id = order when ZP discovers an images, date = date the file has internally set via EXIF for example, mtime= filedate). If using a combined display with news articles they are also sorted by date and never by id (sorting news articles by id is pretty useless). A little confusing I know, so use sortorder date or mtime instead.
"A little confusing I know..."
you're right, it's a little bit confusing (i don't realy undersand sorting with date, mtime,...)
what should i do with night build to have the same results between the 2 rss ?
maybe, you could make an entry in troubleshooting...
Options > RSS > RSS feed sortorder
As said getting imagesg by id does only work for image/album only feeds. Articles have of course a id but that is never their sort order. articles and gallery items are a little different.
the result is still the same