Jump to:

1851 Posts in 1605 Topics by 561 members

Blog Module

SilverStripe Forums » Blog Module » Enable comments on Blog Feed on Home Page

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 673 Views
  • Optic Blaze
    Community Member
    162 Posts

    Enable comments on Blog Feed on Home Page Link to this post

    Hi there,

    I have a SS2.4.10 site that uses the blog module. It works well and i have created a feed on the home page of the site that pulls through the latest blog articles.

    I want to allow users to make comments on the home page that will automatically update the blog's comment section. My articles stay on the homepage for about a week until they are replaced with a new one. For that week i want visitors to the home page to comment on the article, but the comments must not be added to the home page...but rather the blog page.

    Currently the homepages code looks like this:

    class HomePage_Controller extends Page_Controller {

       public static $allowed_actions = array (
       function LatestArticle() {
       return DataObject::get('BlogEntry','','Date DESC','','1');


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.