Jump to:

1851 Posts in 1606 Topics by 561 members

Blog Module

SilverStripe Forums » Blog Module » $PageComments origin

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 1861 Views
  • jcrawford
    Avatar
    Community Member
    2 Posts

    $PageComments origin Link to this post

    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 >.<.

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: $PageComments origin Link to this post

    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

    1861 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.