From 1067e68292852f524fceda4c6cf7cd5f7110b234 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 17 Nov 2009 13:42:51 -0800 Subject: Redesign the way that we consider page types to create buckets of page types, and a subtype for specifics. Currently the top level bucket collection, item, other Here are the core subtypes so far: collection: album, search, tag item: movie, photo other: login, reset, comment-fragment, comment It's legal to create new page_subtypes whenever you want. Use the appropriate page_type to get the coarse grain behavior that you want. --- modules/gallery/controllers/photos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gallery/controllers/photos.php') diff --git a/modules/gallery/controllers/photos.php b/modules/gallery/controllers/photos.php index b9adfd90..0c2ff6ee 100644 --- a/modules/gallery/controllers/photos.php +++ b/modules/gallery/controllers/photos.php @@ -35,7 +35,7 @@ class Photos_Controller extends Items_Controller { list ($next_item) = $photo->parent()->viewable()->children(1, $position, $where); } - $template = new Theme_View("page.html", "photo"); + $template = new Theme_View("page.html", "item", "photo"); $template->set_global("item", $photo); $template->set_global("children", array()); $template->set_global("children_count", 0); -- cgit v1.2.3