<?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: Subsites Module</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/37125?showPost=128607</link>
			<description>I just got it working before too...&lt;br /&gt;&lt;br /&gt;well, kind of...&lt;br /&gt;&lt;br /&gt;I had to create a new row in the Subsites table:&lt;br /&gt;ID - blank&lt;br /&gt;ClassName - Subsite_Template&lt;br /&gt;Created - NOW&lt;br /&gt;Last edited - NOW&lt;br /&gt;Subdomain - &amp;lt;new sub domain&amp;gt;&lt;br /&gt;Title - etc.&lt;br /&gt;domain - mysite.com&lt;br /&gt;&lt;br /&gt;now i dont really know what to do with it...&lt;br /&gt;i can't set themes for the subsites, which could be a bit of a problem&lt;br&gt;&lt;br&gt;Posted to: Subsites Module</description>
			<pubDate>Fri, 25 Jul 2008 01:35:38 +1200</pubDate>
			<author>Jason </author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/37125?showPost=128607</guid>
		</item>
		
		<item>
			<title>Re: Subsites Module</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/37125?showPost=128586</link>
			<description>Hi Racc,&lt;br /&gt;&lt;br /&gt;i am also fighting with the &quot;alpha&quot;-code of the subsites module :-)&lt;br /&gt;&lt;br /&gt;I had to comment the following statements from _config.php:&lt;br /&gt;[code]&lt;br /&gt;Object::add_extension('SiteTree', 'SiteTreeSubsites');&lt;br /&gt;// Hack - this ensures that the SiteTree defineMethods gets called before any of its subclasses...&lt;br /&gt;new SiteTree();&lt;br /&gt;//Object::add_extension('ContentController', 'ControllerSubsites');&lt;br /&gt;//Object::add_extension('LeftAndMain', 'LeftAndMainSubsites');&lt;br /&gt;Object::add_extension('LeftAndMain', 'ControllerSubsites');&lt;br /&gt;//Object::add_extension('Group', 'GroupSubsites');&lt;br /&gt;Object::add_extension('File', 'FileSubsites');&lt;br /&gt;Director::addRules(100, array(&lt;br /&gt;	'admin/subsites/$Action/$ID/$OtherID' =&amp;gt; 'SubsiteAdmin',&lt;br /&gt;));&lt;br /&gt;Object::addStaticVars( 'LeftAndMain', array( 'extra_menu_items' =&amp;gt; array(&lt;br /&gt;'Sub-sites' =&amp;gt; array(&quot;intranets&quot;, &quot;admin/subsites/&quot;, 'SubsiteAdmin')&lt;br /&gt;)));&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;Don't know what functioniality i have disabled, but got the &quot;add subsite&quot; working.&lt;br /&gt;&lt;br /&gt;Carnalito&lt;br /&gt;&lt;br /&gt; &lt;br&gt;&lt;br&gt;Posted to: Subsites Module</description>
			<pubDate>Fri, 25 Jul 2008 01:02:56 +1200</pubDate>
			<author>Hartmut </author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/37125?showPost=128586</guid>
		</item>
		
		<item>
			<title>Re: Try to understand the background of the subsites module</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/126430?showPost=128584</link>
			<description>Hi all,&lt;br /&gt;&lt;br /&gt;me again ;-)&lt;br /&gt;&lt;br /&gt;Has somebody a little hint about accessing the urls to each subsite in the Admin!?&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;&lt;br /&gt;Carnalito&lt;br&gt;&lt;br&gt;Posted to: Try to understand the background of the subsites module</description>
			<pubDate>Fri, 25 Jul 2008 00:56:55 +1200</pubDate>
			<author>Hartmut </author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/126430?showPost=128584</guid>
		</item>
		
		<item>
			<title>Re: access $_SERVER['PATH_INFO']</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/127011?showPost=128511</link>
			<description>its a slightly different topic but yes - you can use a method called renderWith()&lt;br /&gt;&lt;br /&gt;http://doc.silverstripe.com/doku.php?id=templates&amp;amp;s=renderwith#calling_templates_from_php_code&lt;br /&gt;&lt;br&gt;&lt;br&gt;Posted to: access $_SERVER['PATH_INFO']</description>
			<pubDate>Thu, 24 Jul 2008 22:18:00 +1200</pubDate>
			<author>Will Rossiter</author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/127011?showPost=128511</guid>
		</item>
		
		<item>
			<title>Re: Disableing javaScript Libraries?</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/128456?showPost=128506</link>
			<description>You need to use a method called Requirements::block(the file name);.  You would put this in your in the init() function Page_Controller class in Page.php.&lt;br /&gt;&lt;br /&gt;So you would need&lt;br /&gt;&lt;br /&gt;Requirements::block(&quot;jsparty/loader.js&quot;);&lt;br /&gt;..&lt;br /&gt;&lt;br /&gt;for each JS file you want to block on the front end.&lt;br&gt;&lt;br&gt;Posted to: Disableing javaScript Libraries?</description>
			<pubDate>Thu, 24 Jul 2008 22:15:50 +1200</pubDate>
			<author>Will Rossiter</author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/128456?showPost=128506</guid>
		</item>
		
		<item>
			<title>Re: Forcing SilverStripe/TinyMCE to eat code such as iframe and script</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/128480?showPost=128504</link>
			<description>Nice :D you might like to put this on the wiki as I assume there is alot of other people in your situation! &lt;br&gt;&lt;br&gt;Posted to: Forcing SilverStripe/TinyMCE to eat code such as iframe and script</description>
			<pubDate>Thu, 24 Jul 2008 22:12:04 +1200</pubDate>
			<author>Will Rossiter</author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/128480?showPost=128504</guid>
		</item>
		
		<item>
			<title>Forcing SilverStripe/TinyMCE to eat code such as iframe and script</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/128480</link>
			<description>Hi,&lt;br /&gt;&lt;br /&gt;I had been searching for a solution for this for a looong looong while. I needed to find a way to get SS to allow me to paste code such as &amp;lt;iframe&amp;gt; and scripts. (eg. add GoogleMap iframe)&lt;br /&gt;&lt;br /&gt;After an initial search on the IRC I got help and was told it was related to TinyMCE blocking it.&lt;br /&gt;&lt;br /&gt;Eventually Gnx-_ and dio5 found the solution and I traced it back on the IRC channel logs... tonite I implemented the solution they proposed and it solved my issue. I am not sure they posted the solution so I thought I would put it here.&lt;br /&gt;&lt;br /&gt;Navigate to /cms/javascript/tinymce.template.js&lt;br /&gt;&lt;br /&gt;Replace this:&lt;br /&gt;&lt;br /&gt;	valid_elements : &quot;+a[id|rel|rev|dir|tabindex|accesskey|type|name|href|target|title|class],-strong/-b[class],-em/-i[class],-strike[class],-u[class],#p[id|dir|class|align],-ol[class],-ul[class],-li[class],&lt;br /&gt;br,img[id|dir|longdesc|usemap|class|src|border|alt=|title|width|height|align],&lt;br /&gt;-sub[class],-sup[class],-blockquote[dir|class],&lt;br /&gt;-table[border=0|cellspacing|cellpadding|width|height|class|align|summary|dir|id|style],&lt;br /&gt;-tr[id|dir|class|rowspan|width|height|align|valign|bgcolor|background|bordercolor|style],&lt;br /&gt;tbody[id|class|style],thead[id|class|style],tfoot[id|class|style],&lt;br /&gt;-td[id|dir|class|colspan|rowspan|width|height|align|valign|scope|style],&lt;br /&gt;-th[id|dir|class|colspan|rowspan|width|height|align|valign|scope|style],&lt;br /&gt;caption[id|dir|class],-div[id|dir|class|align],-span[class|align],-pre[class|align],&lt;br /&gt;address[class|align],-h1[id|dir|class|align],-h2[id|dir|class|align],-h3[id|dir|class|align],&lt;br /&gt;-h4[id|dir|class|align],-h5[id|dir|class|align],-h6[id|dir|class|align],hr[class],&lt;br /&gt;dd[id|class|title|dir],dl[id|class|title|dir],dt[id|class|title|dir]&quot;,&lt;br /&gt;&lt;br /&gt;by this:&lt;br /&gt;&lt;br /&gt;valid_elements : &quot;*[*]&quot;, (for some reason the forum won't display the whole thing so it is&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;valid_elements : quote star open square bracket star close square bracket quote coma&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And you are done. Thanks Gnx-_ and dio5 you made my day, actually... week, no MONTH!&lt;br /&gt;&lt;br /&gt;fabie :):):)&lt;br&gt;&lt;br&gt;Posted to: Forcing SilverStripe/TinyMCE to eat code such as iframe and script</description>
			<pubDate>Thu, 24 Jul 2008 21:11:21 +1200</pubDate>
			<author>Fabienne Rabbiosi</author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/128480</guid>
		</item>
		
		<item>
			<title>Disableing javaScript Libraries?</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/128456</link>
			<description>How can I disable the the following javaScript libraries:&lt;br /&gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;jsparty/loader.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;jsparty/prototype.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;jsparty/behaviour.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;jsparty/prototype_improvements.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;jsparty/tabstrip/tabstrip.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;jsparty/scriptaculous/effects.js&quot;&amp;gt;&amp;lt;/script&amp;gt; &lt;br /&gt;&lt;br /&gt;In my site, but obviously leave them for the CMS backend?&lt;br /&gt;&lt;br /&gt;Cheers&lt;br&gt;&lt;br&gt;Posted to: Disableing javaScript Libraries?</description>
			<pubDate>Thu, 24 Jul 2008 19:49:48 +1200</pubDate>
			<author>Ryan Taylor</author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/128456</guid>
		</item>
		
		<item>
			<title>Re: Possible Improvement to Security?</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/117624?showPost=128450</link>
			<description>I'm getting an Error: Forbidden when trying to create a new ticket for this? I've signed up.&lt;br /&gt;&lt;br /&gt;So were do I add that code? In the constructor of the Page.php.&lt;br&gt;&lt;br&gt;Posted to: Possible Improvement to Security?</description>
			<pubDate>Thu, 24 Jul 2008 19:48:22 +1200</pubDate>
			<author>Ryan Taylor</author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/117624?showPost=128450</guid>
		</item>
		
		<item>
			<title>Re: Running Multiple Instances / Performance?</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/82778?showPost=128404</link>
			<description>/subscribe&lt;br&gt;&lt;br&gt;Posted to: Running Multiple Instances / Performance?</description>
			<pubDate>Thu, 24 Jul 2008 16:54:53 +1200</pubDate>
			<author>Jack Pivac</author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/82778?showPost=128404</guid>
		</item>
		

	</channel>
</rss>
