Silverstripe Version: 3.6.5
Question:
Hi, I’m trying to display a value from a URL query string in the output of a blog RSS feed.
I’ve tested the below code on a HomePage.php controller:
public function init()
{
parent::init();
}
public function InterestArea()
{
return $this->getRequest()->getVar('BlogCategory');
}
and the HomePage.ss template file:
<p>$InterestArea</p>
But no matter what I do, I can’t get this displaying on an RSS feed from the blog (using the blog module). Any ideas on where I’m going wrong? Cheers