From 12069c6a96b17253641a5db79f719978ccf754ad Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 7 Aug 2007 04:59:19 +0000 Subject: [PATCH] Show a link for page comments on each page git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39684 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/sitefeatures/PageCommentInterface.php | 4 ++++ templates/PageCommentInterface.ss | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/sitefeatures/PageCommentInterface.php b/code/sitefeatures/PageCommentInterface.php index 4e4f04ba..df565534 100755 --- a/code/sitefeatures/PageCommentInterface.php +++ b/code/sitefeatures/PageCommentInterface.php @@ -81,6 +81,10 @@ class PageCommentInterface extends ViewableData { return $comments; } + function CommentRssLink() { + return Director::absoluteBaseURL() . "PageComment/rss?pageid=" . $this->page->ID; + } + } class PageCommentInterface_Form extends Form { diff --git a/templates/PageCommentInterface.ss b/templates/PageCommentInterface.ss index 9f58c81a..0d2e5674 100755 --- a/templates/PageCommentInterface.ss +++ b/templates/PageCommentInterface.ss @@ -40,6 +40,6 @@

No one has commented on this page yet.

<% end_if %> - + RSS feed for comments on this page