Jump to:

1851 Posts in 1606 Topics by 561 members

Blog Module

SilverStripe Forums » Blog Module » How to disable TrackBacks across whole site?

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 1833 Views
  • MarijnKampf
    Avatar
    Community Member
    164 Posts

    How to disable TrackBacks across whole site? Link to this post

    I've noticed that all trackbacks are spam on one of my silverstripe sites. Is there an easy way of disabling all trackbacks across a site? I didn't see a way of as TrackBacksEnabled() seems to be read only. Will I have to alter the templates and remove the trackback related stuff? Would appreciate it if someone knows of an easy and quick way.

  • redactuk
    Avatar
    Community Member
    117 Posts

    Re: How to disable TrackBacks across whole site? Link to this post

    I'm getting the same problem. Can someone please respond to this?

  • MarijnKampf
    Avatar
    Community Member
    164 Posts

    Re: How to disable TrackBacks across whole site? Link to this post

    It's actually a setting in the blog you can find at the bottom of the content tab of your BlogHolder page. Ensure that the checkbox at Enable TrackBacks is cleared and the TrackBacks should be removed from the BlogEntries.

    Or you can hack it in the code of blog\code\BlogEntry.php around line 165 by changing:

       /**
        * Check to see if trackbacks are enabled.
        */
       function TrackBacksEnabled() {
          return $this->getParent()->TrackBacksEnabled;
       }

    to

       /**
        * Check to see if trackbacks are enabled.
        */
       function TrackBacksEnabled() {
          return false;
          //return $this->getParent()->TrackBacksEnabled;
       }

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: How to disable TrackBacks across whole site? Link to this post

    Is there a way of moderating trackbacks? I am getting loads of spam this way as well.

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