summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-17 13:42:51 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-17 14:04:45 -0800
commit1067e68292852f524fceda4c6cf7cd5f7110b234 (patch)
treeb42d9d2814a4a96bbdc63b5280cc22572402c0bb /modules/comment
parentade642cff4a4ca810f468723b04efc6f229916d8 (diff)
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.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/controllers/comments.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php
index 09b9c607..74e0c974 100644
--- a/modules/comment/controllers/comments.php
+++ b/modules/comment/controllers/comments.php
@@ -47,7 +47,7 @@ class Comments_Controller extends REST_Controller {
break;
case "html":
- $view = new Theme_View("comments.html", "page");
+ $view = new Theme_View("comments.html", "other", "comment");
$view->comments = $comments;
print $view;
break;
@@ -130,7 +130,7 @@ class Comments_Controller extends REST_Controller {
"created" => $comment->created,
"text" => nl2br(html::purify($comment->text)))));
} else {
- $view = new Theme_View("comment.html", "fragment");
+ $view = new Theme_View("comment.html", "other", "comment-fragment");
$view->comment = $comment;
print $view;
}