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

How to disable TrackBacks across whole site?


Go to End


4 Posts   2935 Views

Avatar
MarijnKampf

Community Member, 176 Posts

23 August 2010 at 8:06pm

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.

Avatar
redactuk

Community Member, 117 Posts

5 September 2010 at 12:02am

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

Avatar
MarijnKampf

Community Member, 176 Posts

5 September 2010 at 4:20am

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;
 	}

Avatar
DsX

Community Member, 178 Posts

8 December 2011 at 7:34am

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