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
This commit is contained in:
Andrew O'Neil 2007-08-07 04:59:19 +00:00
parent 475b872eb8
commit 12069c6a96
2 changed files with 5 additions and 1 deletions

View File

@ -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 {

View File

@ -40,6 +40,6 @@
<p id="NoComments">No one has commented on this page yet.</p>
<% end_if %>
</div>
<a class="commentrss" href="$CommentRssLink">RSS feed for comments on this page</a>
</div>