Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

[Solved] Prevent automatic population of head/body tag

$
0
0

Hi all,

I have the problem, in which Silverstripe is just trying to do more than I need. The situation: a forTemplate() method is called on a DataObject, using a template, as

function forTemplate() {
return $this->renderWith('template');
}


The result of this rendering will be written to a XML file, which is working fine. However, in the template.ss, I have included an <head> and <body> section, and silverstripe automatically populates these with its requirements from the CMS (javascripts, CSS). Can I prevent this some how (other than adding whitespaces to the tag names).

Kinds regards!
Maurice


Posted to: [Solved] Prevent automatic population of head/body tag | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles