<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Forum posts to 'Extending and hacking'</title>
		<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/</link>
		

		
		<item>
			<title>Re: Adding &lt;body&gt; attributes programmatically</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/68783?showPost=68792</link>
			<description>Why not use Requirements::javascript() to include a js file that sets window.onload?&lt;br&gt;&lt;br&gt;Posted to: Adding &lt;body&gt; attributes programmatically</description>
			<pubDate>Fri, 09 May 2008 18:00:07 +1200</pubDate>
			<author>Sam Minnee</author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/68783?showPost=68792</guid>
		</item>
		
		<item>
			<title>Adding &lt;body&gt; attributes programmatically</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/68783</link>
			<description>Hi,&lt;br /&gt;&lt;br /&gt;I want the ability to add some event attributes to the &amp;lt;body&amp;gt; tag of a Page but do so only through programming, not via a control or variable in a template file. I was thinking it would work like the Requirements includeInHtml method which seems to do the string replacing on the &amp;lt;/head&amp;gt; tag&lt;br /&gt;&lt;br /&gt;Is there something like that already available?&lt;br /&gt;&lt;br /&gt;My question is:&lt;br /&gt;What calls Requirements::includeInHtml in the execution pipeline/rendering process so I can look at writing a class and methods to add the attributes? &lt;br /&gt;&lt;br /&gt;Seek and ye shall find. Answered my own question, it is SSViewer.php, what's my next move?&lt;br&gt;&lt;br&gt;Posted to: Adding &lt;body&gt; attributes programmatically</description>
			<pubDate>Fri, 09 May 2008 17:27:16 +1200</pubDate>
			<author>Spencer Crocker</author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/68783</guid>
		</item>
		

	</channel>
</rss>
