Jump to:

1835 Posts in 1139 Topics by 554 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: 551 Views
  • Optic Blaze
    Avatar
    Community Member
    150 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');
       }

       
    }

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