Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

$PageComments origin


Go to End


2 Posts   2874 Views

Avatar
jcrawford

Community Member, 2 Posts

14 August 2009 at 1:10pm

hey, I'm new to silverstripe. I'm tweaking layout issues, and I want to modify some of the HTML in a BlogEntry, specifically the submit comment form. This is $PageContents in the template, but I can't for the life of me find where that's being set. I looked in blog/code/blogentry.php and it doesn't seem to be there? Sorry if I'm missing something obvious >.<.

Avatar
Willr

Forum Moderator, 5523 Posts

14 August 2009 at 3:05pm

PageComments is not a blog thing, page comments are part of the default package. It points to a function PageComments() in sapphire/core/control/ContentController.php

If you want to override the functionality then you can define this function on your Page.php file in your code or add a template file (PageCommentInterface.ss or PageCommentInterface_singlecomment.ss) in themes/yourtheme/templates/ to override the default html