Closed guyvanbael closed 6 years ago
Tried 2.1.1
? Make sure you flush.
tried 2.1.1, flushed.... same issue
@wilr fixed it on slack with Andrew... Edit GoogleSitemapController.php like this
public function styleSheetIndex()
{
$html = $this->renderWith('xml-sitemapindex');
$this->getResponse()->addHeader('Content-Type', 'text/xsl; charset="utf-8"');
return $html;
}
public function styleSheet()
{
$html = $this->renderWith('xml-sitemap');
$this->getResponse()->addHeader('Content-Type', 'text/xsl; charset="utf-8"');
return $html;
}
and as for the stylesheetpath use <link rel="stylesheet" href="$resourceURL('wilr/silverstripe-googlesitemaps:css/style.css')" />
Interesting, didn't have any issues on our PHP7 servers around the content type but better to be explicit! so I've added header and tagged a 2.1.2
2.1.2 is now fully SS4.1 compatible. Thanks for your coöperation @wilr
Nothing is loading...