Commit Graph

14 Commits

Author SHA1 Message Date
Bharat Mediratta
29966cc4fc Set the page size to 30 images. No need to limit ourselves to 10 in a feed. 2008-11-28 05:18:17 +00:00
Bharat Mediratta
b69104b695 Fix a bug where we were loading the wrong item/tag 2008-11-28 01:41:26 +00:00
Bharat Mediratta
fd519082e1 Add a media_rss feed for tag views.
When visiting a photo, show the feed for the parent album.
2008-11-28 01:20:17 +00:00
Tim Almdal
8c06908f7f Use rest::http_content_type() instead of the header() method to set response content 2008-11-20 17:51:12 +00:00
Bharat Mediratta
611627231b Clean up the MediaRSS module a little bit:
* Media_RSS_Controller::$LIMIT is now self::$page_size
* We use ORM_MPTT descendant_counts()
* If the page is out of bounds, put it on a boundary
* Move pub_date into the controller to simplify the mrss file
* Put all the view assignment in one block for easier reading
* Removed stray ; from the end of lines in the mrss file

Clean up ORM_MPTT a bit:
* fix spelling: decendent -> descendant
* Remove unnecessary order_by() clauses
* Set the default for $type to null (not "all").
2008-11-20 02:59:43 +00:00
Tim Almdal
bd76b2e89f changed descendents_by_type to descendents and added descendent_count 2008-11-20 00:45:40 +00:00
Tim Almdal
b3314fc1dc Update the media rss template to include the resize and the fullsize
added descendants by type method to the item model to allow for the selection of children by type
2008-11-19 18:23:30 +00:00
Bharat Mediratta
20a0700fcb Set the content type to application/rss+xml 2008-11-19 03:29:57 +00:00
Bharat Mediratta
a197c057c8 rename views/feed.media_rss.php to views/feed.mrss.php because
mrss is a more standard abbreviation for MediaRSS.  Sigh.
2008-11-19 03:23:40 +00:00
Bharat Mediratta
c67f9069d0 Rename views/media_rss.html.php -> views/feed.media_rss.php because as
Tim points out, "it's not html".  My bad!
2008-11-19 03:21:43 +00:00
Bharat Mediratta
9311c12f1f rename views/media.rss.php to views/media_rss.html.php for consistency. 2008-11-19 03:18:59 +00:00
Bharat Mediratta
df4832bf6f Change Media_RSS_Controller so that it does not extend REST_Controller, since it
doesn't refer to a fixed resource or collection of resources.

Fix some minor bugs in the code so that we can actually generate a
feed.  It looks pretty cool!  Improved pagination links, but didn't actually test them.
2008-11-19 03:17:56 +00:00
Tim Almdal
693080669a fix a few minor issues 2008-11-19 02:50:11 +00:00
Tim Almdal
ad7ace9b72 The continuing evolution of the slideshow...
1) added a mime_type property to the item module(no database change)
2) created a media_rss module
3) moved most of the functionality for the downloading the images to the media_rss module
2008-11-19 02:31:20 +00:00