<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title></title>
		<link>http://www.silverstripe.org/forums/rss</link>
		<atom:link href="http://www.silverstripe.org/forums/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Re: z-index for #conent in layout.css dosen&#39;t work</title>
			<link>http://www.silverstripe.org/template-questions/show/19187#post311765</link>
			<description>&lt;p&gt;Z index only works on absolutely or relatively positioned elements. Without your markup or css, or knowing what you want to achieve, it's pretty hard to help further than that.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: z-index for #conent in layout.css dosen't work &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19187#post311765&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19187&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 12 Feb 2012 00:18:43 +1300</pubDate>
			<dc:creator>Pigeon</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19187#post311765</guid>
		</item>
		
		<item>
			<title>z-index for #conent in layout.css dosen&#39;t work</title>
			<link>http://www.silverstripe.org/template-questions/show/19187</link>
			<description>&lt;p&gt;Hey Guys,&lt;/p&gt;&lt;p&gt;I'm new in silverstripe coding. It's great! But I want to set z-index for the #Content and/or #ContentContainer from layout.css of the tutorial. It dosen't work. Would be great if someone could help?! Thx a lot!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: z-index for #conent in layout.css dosen't work &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19187&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19187&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 11 Feb 2012 23:32:57 +1300</pubDate>
			<dc:creator>Chriso</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19187</guid>
		</item>
		
		<item>
			<title>Re: LinkOrSection failing for one page</title>
			<link>http://www.silverstripe.org/template-questions/show/19182#post311749</link>
			<description>&lt;p&gt;The page in question is a top level page, which is why it's so odd.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: LinkOrSection failing for one page &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19182#post311749&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19182&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 10 Feb 2012 23:24:23 +1300</pubDate>
			<dc:creator>Lazarus404</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19182#post311749</guid>
		</item>
		
		<item>
			<title>Re: LinkOrSection failing for one page</title>
			<link>http://www.silverstripe.org/template-questions/show/19182#post311748</link>
			<description>&lt;p&gt;&lt;del&gt;The css class 'section' will be parsed only if the current page is a child of the your page.&lt;/del&gt;&lt;br /&gt;Edit: This is wrong. Section should be parsed no matter if or not the actual page is a current one. Sorry.&lt;/p&gt;&lt;p&gt;You might wanna use $LinkingMode instead. It will return link, current or section.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: LinkOrSection failing for one page &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19182#post311748&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19182&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 10 Feb 2012 22:50:56 +1300</pubDate>
			<dc:creator>Devlin</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19182#post311748</guid>
		</item>
		
		<item>
			<title>Re: Cannot select page type in admin panel</title>
			<link>http://www.silverstripe.org/template-questions/show/19116#post311738</link>
			<description>&lt;p&gt;I've had this happen when I've created a new page type, run dev/build, created a page based in this new page type, then removed the php files, run dev/build to clear the database, and then uploaded new versions of the php files, and dev/build again. &lt;/p&gt;&lt;p&gt;I've solved the problem in these cases by going directly into the database, finding the page in the sitetree table, and changing the page type back to 'Page'. Reloading the CMS, and then it lets me choose the right page type again..&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Cannot select page type in admin panel &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19116#post311738&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19116&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 10 Feb 2012 12:57:13 +1300</pubDate>
			<dc:creator>Futureweb</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19116#post311738</guid>
		</item>
		
		<item>
			<title>LinkOrSection failing for one page</title>
			<link>http://www.silverstripe.org/template-questions/show/19182</link>
			<description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I have a site built with six top level pages.  Each page uses a different controller to facilitate different functionality (one page is a Blog module).  In the navigation for this page, I'm using LinkOrSection to detect if the page is current so that I can highlight a nav item for that page.  The problem I'm getting, however, is that it isn't working for one of these pages.  The page is nothing special, but when directed to the page, the LinkOrSection results as link.  Is there something I should be checking or looking for in order to figure out why this isn't working?&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;Lee&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: LinkOrSection failing for one page &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19182&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19182&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 10 Feb 2012 12:10:04 +1300</pubDate>
			<dc:creator>Lazarus404</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19182</guid>
		</item>
		
		<item>
			<title>Select SWF for header</title>
			<link>http://www.silverstripe.org/template-questions/show/19172</link>
			<description>&lt;p&gt;Hello all,&lt;/p&gt;&lt;p&gt;i have a little problem on my mind. a time ago did i intergrade a option for a customer that he can upload an image on every page for the header.  &lt;/p&gt;&lt;p&gt;there for did i need to edit the mysite/code/page.php and add this&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'HeaderImage' =&amp;gt; 'Image' &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function getCMSFields() { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = parent::getCMSFields(); &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(!$this-&amp;gt;Parent){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab(&quot;Root.Content.Main&quot;, new ImageField('HeaderImage')); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $fields; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;in the template file i only had to set $HeaderImage.&lt;/p&gt;&lt;p&gt;Now i want te make it work for an Flash animation but changing &quot;'HeaderImage' =&amp;gt; 'Image'&quot; to &quot;'HeaderImage' =&amp;gt; 'Flash'&quot; Or SWF, wont work. &lt;br /&gt;is there someone who can help me with this?&lt;/p&gt;&lt;p&gt;Thanks&lt;br /&gt;Ronald&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Select SWF for header &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19172&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19172&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 10 Feb 2012 00:46:33 +1300</pubDate>
			
			<guid>http://www.silverstripe.org/template-questions/show/19172</guid>
		</item>
		
		<item>
			<title>Re: $Created.Ago in german</title>
			<link>http://www.silverstripe.org/template-questions/show/19135#post311713</link>
			<description>&lt;p&gt;Then I would suggest that you changed i18n:set_locale() somewhere in your code or you overloaded $lang['de_DE']['Date']['TIMEDIFFAGO'] or the language file is not loaded.&lt;br /&gt;You can check your locale if you place &quot;echo i18n::get_locale();&quot; &amp;amp; &quot;echo _t('Date.DAYS');&quot; in e.g. your init method. It should return &quot;de_DE&quot; &amp;amp; &quot;Tage&quot;.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: $Created.Ago in german &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19135#post311713&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19135&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 09 Feb 2012 22:57:55 +1300</pubDate>
			<dc:creator>Devlin</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19135#post311713</guid>
		</item>
		
		<item>
			<title>Re: $Created.Ago in german</title>
			<link>http://www.silverstripe.org/template-questions/show/19135#post311696</link>
			<description>&lt;p&gt;Hi Devlin,&lt;/p&gt;&lt;p&gt;Thanks for your reply. I've change my _config.php to your settings. but the string on the pagecomment is still the same ‘1 day ago‘. I use use the pagecomments only at the blogentry. Any other tips?&lt;/p&gt;&lt;p&gt;Pipifix&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: $Created.Ago in german &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19135#post311696&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19135&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 09 Feb 2012 08:46:12 +1300</pubDate>
			<dc:creator>Pipifix</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19135#post311696</guid>
		</item>
		
		<item>
			<title>.First Page Control - Also  .Second, .Third and so on ??</title>
			<link>http://www.silverstripe.org/template-questions/show/19163</link>
			<description>&lt;p&gt;Hi There,&lt;/p&gt;&lt;p&gt;i'm trying to get the latest entrys out of an dataobject. I managed it to get the first one with &lt;br /&gt;&lt;strong&gt;&amp;lt;% control NAME.First %&amp;gt;&lt;/strong&gt; is there also a way to get the second one, third one and so on?&lt;/p&gt;&lt;p&gt;is it possible to copy and rewrite the .first function so that i can get a .second and .third and so on?&lt;br /&gt;Does someone know, where this function located?&lt;/p&gt;&lt;p&gt;I hope you can help me  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt;  And sry for my english ^^&lt;/p&gt;&lt;p&gt;Thx and Greets &lt;br /&gt;Benni&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: .First Page Control - Also  .Second, .Third and so on ?? &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19163&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19163&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 09 Feb 2012 00:34:53 +1300</pubDate>
			<dc:creator>benni91</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19163</guid>
		</item>
		
		<item>
			<title>Re: $Created.Ago in german</title>
			<link>http://www.silverstripe.org/template-questions/show/19135#post311582</link>
			<description>&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;i18n::set_default_lang(&quot;de_DE&quot;);&lt;br /&gt;i18n::set_locale('de_DE');&lt;br /&gt;setlocale(LC_TIME, array('de_DE.UTF-8','de_DE') );&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Works for me.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: $Created.Ago in german &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19135#post311582&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19135&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 03 Feb 2012 02:34:54 +1300</pubDate>
			<dc:creator>Devlin</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19135#post311582</guid>
		</item>
		
		<item>
			<title>$Created.Ago in german</title>
			<link>http://www.silverstripe.org/template-questions/show/19135</link>
			<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I simple want to change the output of $Created.Ago in german translation on a current project (SS2.46). Means the string ‘(1 day ago)‘ should be ‘(vor 1 Tag)‘. My config is set to:&lt;br /&gt; &lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;i18n::set_default_locale(&quot;de_DE&quot;);&lt;br /&gt;setlocale(LC_ALL, 'de_DE');&lt;br /&gt;setlocale(LC_TIME,&quot;de_DE.UTF-8&quot;);&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;Althought i searched the forum, i did'nt found a solution. Where to look for...?&lt;br /&gt;Thanks for your help.&lt;/p&gt;&lt;p&gt;Pipifix&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: $Created.Ago in german &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19135&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19135&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 03 Feb 2012 00:05:57 +1300</pubDate>
			<dc:creator>Pipifix</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19135</guid>
		</item>
		
		<item>
			<title>Re: Requirements::javascript issue</title>
			<link>http://www.silverstripe.org/template-questions/show/4815#post311573</link>
			<description>&lt;p&gt;+1 again for being able to choose &amp;lt;head&amp;gt; or &amp;lt;body&amp;gt; on a per-file basis.  FOUC related JS like modernizr or prefixree js should be after the CSS in the head, where as jQuery and other plugins should be don't in the body.  &lt;/p&gt;&lt;p&gt;Even better if I could put a variable into my template for exactly where I want it to go in case I want to place something after the JS/CSS in the head but before the closing &amp;lt;/head&amp;gt; tag and same goes for the &amp;lt;/body&amp;gt; tag.  This would also save you from HTML parsing for the placement.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Requirements::javascript issue &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/4815#post311573&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/4815&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 02 Feb 2012 14:43:33 +1300</pubDate>
			<dc:creator>joelpittet</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/4815#post311573</guid>
		</item>
		
		<item>
			<title>Cannot select page type in admin panel</title>
			<link>http://www.silverstripe.org/template-questions/show/19116</link>
			<description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I have created a new page type called HomePage. To do this I have created a Homepage.php file which is located at mysite/code/HomePage.php and I have a file called HomePage.ss located at template/Homepage.ss. I have run dev/build?flush=1 and ?flush=all and I have a file in site root called silverstripe-cache at SilverStripe/silverstripe-cache set to read / write and again run dev/build?flush=1 and ?flush=all.&lt;/p&gt;&lt;p&gt;when I go to the admin panel i can see the option Change to HomePage in the page type drop down menu. It allows me to select this option but when I save it changes the page type to Change to Error Page and then saves it as that page type.&lt;/p&gt;&lt;p&gt;This then returns the statement &quot;Generated with the default ContentController.ss template&quot; on the site for that page but all other pages are ok.&lt;/p&gt;&lt;p&gt;One final thing: I have a &amp;lt;form action=&quot;url&quot; method=&quot;get&quot; &amp;lt;/form&amp;gt; statement and a &amp;lt;script type=&quot;text/javascript&quot; src=&quot;url&quot;&amp;gt;&amp;lt;/script&amp;gt; statement coded into the HomePage.ss immediately after the &amp;lt;div id=&quot;Layout&quot;&amp;gt; $Layout&amp;lt;/div&amp;gt; statement.&lt;/p&gt;&lt;p&gt;Can anyone tell me where I have gone wrong?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Cannot select page type in admin panel &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19116&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19116&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 31 Jan 2012 15:00:39 +1300</pubDate>
			<dc:creator>Loopy</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19116</guid>
		</item>
		
		<item>
			<title>Virtual Page looses functionality of original page</title>
			<link>http://www.silverstripe.org/template-questions/show/19111</link>
			<description>&lt;p&gt;Hello all,&lt;br /&gt;For the Page Type &quot;Page&quot; I defined a function (myaction) in the Controller. &lt;br /&gt;I can access the function normally via&lt;br /&gt;&lt;a href=&quot;http://www.mydomain.com/mypage/myaction&quot; rel=&quot;nofollow&quot;&gt;http://www.mydomain.com/mypage/myaction&lt;/a&gt;&lt;/p&gt;&lt;p&gt;That just don´t work for Virtual Pages, that mirror a page of type &quot;Page&quot;.&lt;br /&gt;A call like this:&lt;br /&gt;&lt;a href=&quot;http://www.mydomain.com/my-virtual-page/myaction&quot; rel=&quot;nofollow&quot;&gt;http://www.mydomain.com/my-virtual-page/myaction&lt;/a&gt;&lt;br /&gt;will show up the &quot;Page not found&quot;-Page...&lt;/p&gt;&lt;p&gt;So somehow a virtual page doesn´t &quot;inherit&quot; the functions defined in the controller of the original page type?&lt;/p&gt;&lt;p&gt;Is there a good way to solve this?&lt;br /&gt;Many thanks,&lt;br /&gt;Flo&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Virtual Page looses functionality of original page &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19111&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19111&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 30 Jan 2012 22:24:21 +1300</pubDate>
			<dc:creator>spierala</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19111</guid>
		</item>
		
		<item>
			<title>Re: How detect dev/live mode in template?</title>
			<link>http://www.silverstripe.org/template-questions/show/19069#post311342</link>
			<description>&lt;p&gt;Of course - how simple!  &lt;/p&gt;&lt;p&gt;So there aren't any in-built template tags.&lt;/p&gt;&lt;p&gt;Thanks Swaiba.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How detect dev/live mode in template? &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19069#post311342&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19069&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 23 Jan 2012 23:13:19 +1300</pubDate>
			<dc:creator>vwd</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19069#post311342</guid>
		</item>
		
		<item>
			<title>Re: How detect dev/live mode in template?</title>
			<link>http://www.silverstripe.org/template-questions/show/19069#post311341</link>
			<description>&lt;p&gt;You'll just need to wrap then in a function in the controller&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How detect dev/live mode in template? &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19069#post311341&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19069&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 23 Jan 2012 22:27:52 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19069#post311341</guid>
		</item>
		
		<item>
			<title>How detect dev/live mode in template?</title>
			<link>http://www.silverstripe.org/template-questions/show/19069</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Is there a way to detect dev mode or live mode from within the template?&lt;/p&gt;&lt;p&gt;I'm trying to disable Google Analytics (not include JS) when in dev mode.  Am I correct in assuming that for this case, it is best (from MVC perspective) to do it at the controller level, not template?  Eg.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;Director::isDev();&lt;br /&gt;Director::isTest();&lt;br /&gt;Director::isLive();&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;p&gt;VWD.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How detect dev/live mode in template? &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19069&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19069&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 23 Jan 2012 15:46:00 +1300</pubDate>
			<dc:creator>vwd</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19069</guid>
		</item>
		
		<item>
			<title>Re: Second individual menu/navigation</title>
			<link>http://www.silverstripe.org/template-questions/show/19057#post311328</link>
			<description>&lt;p&gt;What I usually do is create a boolean AddToFooterMenu to the Page class, and create a checkbox field for it in the CMS.&lt;/p&gt;&lt;p&gt;IF the only thing needed is a single layer footermenu, I just create a getFooterMenu() function in the Page_Controller that returns a DatObject::get of all pages where AddToFooterMenu = false... In a multlayers itemap kind of menu you could also do a &amp;lt;% if AddToFooterMenu %&amp;gt; in your templates menu control loops...&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Second individual menu/navigation &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19057#post311328&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19057&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 23 Jan 2012 06:18:25 +1300</pubDate>
			<dc:creator>martimiz</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19057#post311328</guid>
		</item>
		
		<item>
			<title>Re: modulus not working in if condition?!</title>
			<link>http://www.silverstripe.org/template-questions/show/19063#post311324</link>
			<description>&lt;p&gt;Hi Willr,&lt;/p&gt;&lt;p&gt;thank you for your fast answer!&lt;/p&gt;&lt;p&gt;It's working in a single condition, but if you try something like that:&lt;/p&gt;&lt;p&gt;&amp;lt;% if MultipleOf(2) %&amp;gt;&lt;br /&gt;  foo2&lt;br /&gt;&amp;lt;% else_if MultipleOf(3) %&amp;gt;&lt;br /&gt;  foo3&lt;br /&gt;&amp;lt;% else %&amp;gt;&lt;br /&gt;  foo4&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;p&gt;it only outputs:&lt;/p&gt;&lt;p&gt;foo4 foo2 &amp;lt;% else_if MultipleOf(3) %&amp;gt; foo3 foo4 foo2 &amp;lt;% else_if MultipleOf(3) %&amp;gt; foo3&lt;/p&gt;&lt;p&gt;Greetings&lt;br /&gt;Houdini&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: modulus not working in if condition?! &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19063#post311324&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19063&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 22 Jan 2012 22:38:16 +1300</pubDate>
			<dc:creator>therealhoudini</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19063#post311324</guid>
		</item>
		
		<item>
			<title>Re: modulus not working in if condition?!</title>
			<link>http://www.silverstripe.org/template-questions/show/19063#post311320</link>
			<description>&lt;p&gt;You have to use &amp;lt;% if MultipleOf(2) %&amp;gt; in that case for 2.* at least&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: modulus not working in if condition?! &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19063#post311320&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19063&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 22 Jan 2012 22:17:34 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19063#post311320</guid>
		</item>
		
		<item>
			<title>modulus not working in if condition?!</title>
			<link>http://www.silverstripe.org/template-questions/show/19063</link>
			<description>&lt;p&gt;hi there!&lt;/p&gt;&lt;p&gt;in SS 2.4 there is a new template function &quot;modulus&quot;, but it doesn't work with if condition, any ideas?&lt;/p&gt;&lt;p&gt;example: $modulus(3) returns an integer, but &amp;lt;% if $modulus(3) == 1 %&amp;gt;do something &amp;lt;% end_if %&amp;gt; doesn't work&lt;/p&gt;&lt;p&gt;thx!&lt;br /&gt;houdini&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: modulus not working in if condition?! &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19063&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19063&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 22 Jan 2012 09:01:27 +1300</pubDate>
			<dc:creator>therealhoudini</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19063</guid>
		</item>
		
		<item>
			<title>Second individual menu/navigation</title>
			<link>http://www.silverstripe.org/template-questions/show/19057</link>
			<description>&lt;p&gt;Hey Guys,&lt;/p&gt;&lt;p&gt;i do the first migration from a website to SilverStripe CMS and i need your help for a individual menu/navigation.&lt;/p&gt;&lt;p&gt;My normal navigation in the header and the submenu navigations works fine, but i need a third navigation in the footer. The heaviness is that i need to select which menu item will be shown in the footer navigation. So maybe there will be different selections for the main and the footer navigation. The menu item &quot;Home&quot; is shown in the main navigation but we won't show it in the footer navigation. In the other way i can use the selectbox &quot;don't show in menu&quot; so that a menu item will be shown in the footer navigation but not in the main navigation. I already tried the special menu (&lt;a href=&quot;http://bit.ly/zuDW8F&quot; rel=&quot;nofollow&quot;&gt;http://bit.ly/zuDW8F&lt;/a&gt;), but i can't use children in there.&lt;/p&gt;&lt;p&gt;I hope you can help me.&lt;/p&gt;&lt;p&gt;Thanks and Greetings from Munich.&lt;br /&gt;Oliver&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Second individual menu/navigation &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19057&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19057&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 21 Jan 2012 05:06:39 +1300</pubDate>
			<dc:creator>langhauserit</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19057</guid>
		</item>
		
		<item>
			<title>Re: FOUC in Silverstripe</title>
			<link>http://www.silverstripe.org/template-questions/show/19029#post311225</link>
			<description>&lt;p&gt;I do believe the timestamp is for versioning so when you update the CSS file or whatever the timestamp changes. This way the newer version will always be loaded instead of hitting the browser cache. Otherwise there's no difference whatsoever and there's no processing being done when the page hits the browser. It's all server side.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FOUC in Silverstripe &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19029#post311225&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19029&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 18 Jan 2012 08:45:35 +1300</pubDate>
			<dc:creator>Smurkas</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19029#post311225</guid>
		</item>
		
		<item>
			<title>FOUC in Silverstripe</title>
			<link>http://www.silverstripe.org/template-questions/show/19029</link>
			<description>&lt;p&gt;Hey,&lt;/p&gt;&lt;p&gt;On a few of my sites when using Requirements::CSS etc. when clicking between pages there's a very brief flash of white, before every page load, in every browser. This doesn't happen on every site using requirements. &lt;/p&gt;&lt;p&gt;My remedy to this is to not use Requirements or &amp;lt;% require %&amp;gt; and use &amp;lt;link&amp;gt;, a mild inconvenience and not ideal.&lt;/p&gt;&lt;p&gt;I notice Silverstripe puts a timestamp on the end of required file paths, what's the purpose of that? Could it be causing the issue? Because essentially the only difference between using the requirements and using &amp;lt;link&amp;gt; is this timestamp, and that required css are at the bottom of the &amp;lt;head&amp;gt; tag.&lt;/p&gt;&lt;p&gt;Again, this is happening across a few sites, no current examples as they are all live and using &amp;lt;link&amp;gt;.&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FOUC in Silverstripe &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19029&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19029&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 18 Jan 2012 03:12:16 +1300</pubDate>
			<dc:creator>SamTheJarvis</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19029</guid>
		</item>
		
		<item>
			<title>Re: Template overriding question</title>
			<link>http://www.silverstripe.org/template-questions/show/18974#post311206</link>
			<description>&lt;p&gt;Thank's for the reply. I posted a comment also in the doc (&lt;a href=&quot;http://doc.silverstripe.org/sapphire/en/topics/theme-development#overriding&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/sapphire/en/topics/theme-development#overriding&lt;/a&gt;) hope that helps to avoid misunderstanding.&lt;/p&gt;&lt;p&gt;Anyhow this seems to me quite a big issue for Silverstripe and Theme/Module development, hope that release 3 will fix it.&lt;/p&gt;&lt;p&gt;UPDATE (little later) - yes, the subtheme can override a module, but you must call the subtheme like the theme plus _ (underscore) and the module's name (eg. theme/theme_module/). So is not really useful for my issue ;)&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Template overriding question &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18974#post311206&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18974&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 18 Jan 2012 00:06:11 +1300</pubDate>
			<dc:creator>Borgopio</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18974#post311206</guid>
		</item>
		
		<item>
			<title>Re: renderWith() and Object iteration in Template</title>
			<link>http://www.silverstripe.org/template-questions/show/19009#post311161</link>
			<description>&lt;p&gt;Because I don't need the benefits of a DataObject such as storing any data in the DB or write/load from the DB. So i think its better to extend just ViewableData. All the displayed Data is passed to the Accordion class by passing a DataObjectSet to the constructor as first argument.&lt;/p&gt;&lt;p&gt;What would the benefits be if I extend from DataObject?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: renderWith() and Object iteration in Template &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19009#post311161&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19009&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 16 Jan 2012 05:12:20 +1300</pubDate>
			<dc:creator>juergr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19009#post311161</guid>
		</item>
		
		<item>
			<title>Re: renderWith() and Object iteration in Template</title>
			<link>http://www.silverstripe.org/template-questions/show/19009#post311158</link>
			<description>&lt;p&gt;Why are you extending ViewableData directly and not using DataObject?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: renderWith() and Object iteration in Template &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19009#post311158&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19009&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 16 Jan 2012 03:51:30 +1300</pubDate>
			<dc:creator>Smurkas</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19009#post311158</guid>
		</item>
		
		<item>
			<title>Re: renderWith() and Object iteration in Template</title>
			<link>http://www.silverstripe.org/template-questions/show/19009#post311157</link>
			<description>&lt;p&gt;Hey jdi!&lt;/p&gt;&lt;p&gt;I don't know if i understand your question right, but i've solved quit the same problem just a few days ago. But it seems to me that you have to write a new class, which just handles the rendering of your DataObject, so you dont have to write for each object a &quot;renderWithSpecialTemplate&quot;-function.&lt;/p&gt;&lt;p&gt;What if've wanted to do: Create a simple class to generate jQuery Accordion elements (see: &lt;a href=&quot;http://jqueryui.com/demos/accordion/&quot; rel=&quot;nofollow&quot;&gt;http://jqueryui.com/demos/accordion/&lt;/a&gt;)&lt;/p&gt;&lt;p&gt;So basicaly i've created a class which holds a whole Accordion and another class which holds a single Accordion Item. &lt;br /&gt;Lets start with the Accordion class:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class Accordion extends UIElement {&lt;br /&gt;    private $items; // DataObjectSet with Accordion_item's&lt;br /&gt;    private $item_template = 'Accordion_item';&lt;br /&gt;    private $template = 'Accordion';&lt;br /&gt;    private $ID;&lt;/p&gt;&lt;p&gt;    public function  __construct($items, $name = null, $template = null, $itemTemplate = null) {&lt;br /&gt;        $this-&amp;gt;initialize($name);&lt;br /&gt;        if($template != null) {&lt;br /&gt;            $this-&amp;gt;setTemplate($template);&lt;br /&gt;        }&lt;br /&gt;        if($itemTemplate != null) {&lt;br /&gt;            $this-&amp;gt;setItemTemplate($itemTemplate);&lt;br /&gt;        }&lt;br /&gt;        $this-&amp;gt;setItems($items);&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    public function  initialize($id = null) {&lt;br /&gt;        if($id != null) {&lt;br /&gt;            $this-&amp;gt;ID = $id;&lt;br /&gt;        } else {&lt;br /&gt;            $this-&amp;gt;ID = uniqid();&lt;br /&gt;        }&lt;br /&gt;        Requirements::css('mysite/UIComponents/accordion/css/accordion.css');&lt;br /&gt;        $this-&amp;gt;includeJQueryUI();&lt;br /&gt;        Requirements::customScript(&amp;lt;&amp;lt;&amp;lt;JS&lt;br /&gt;                &amp;nbsp;&amp;nbsp;&amp;nbsp;$(function() {&lt;br /&gt;                            $( &quot;#accordion_{$this-&amp;gt;ID}&quot; ).accordion({&lt;br /&gt;                                active: false,&lt;br /&gt;                                animated: false&lt;br /&gt;                            });&lt;br /&gt;                        });&lt;br /&gt;JS&lt;br /&gt;                );&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    public function setItems($items) {&lt;br /&gt;        $this-&amp;gt;items = new DataObjectSet();&lt;br /&gt;        foreach($items as $item) {&lt;br /&gt;            $this-&amp;gt;items-&amp;gt;push(new Accordion_item($item,$this-&amp;gt;item_template));&lt;br /&gt;        }&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    public function setTemplate($template) {&lt;br /&gt;        $this-&amp;gt;template = $template;&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    public function setItemTemplate($template) {&lt;br /&gt;        $this-&amp;gt;item_template = $template;&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    public function forTemplate() {&lt;br /&gt;        $data = array(&lt;br /&gt;            'ID'    =&amp;gt; $this-&amp;gt;ID&lt;br /&gt;        );&lt;br /&gt;        return $this-&amp;gt;customise($data)-&amp;gt;renderWith(array($this-&amp;gt;template));&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    public function Items() {&lt;br /&gt;        return $this-&amp;gt;items;&lt;br /&gt;    }&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;I think this code is pretty self explaining. Accordion extends UIElement which is a ViewableData-class with some basic function like including jQuery.&lt;/p&gt;&lt;p&gt;Then we have the Items class (in the same file) which is straightforward and easy to understand: &lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class Accordion_item extends ViewableData {&lt;br /&gt;    private $data;&lt;br /&gt;    private $template;&lt;/p&gt;&lt;p&gt;    public function __construct($item, $template) {&lt;br /&gt;        $this-&amp;gt;setData($item);&lt;br /&gt;        $this-&amp;gt;setTemplate($template);&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    public function setData($data) {&lt;br /&gt;        $this-&amp;gt;data = $data;&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    public function setTemplate($template) {&lt;br /&gt;        $this-&amp;gt;template = $template;&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    public function Item() {&lt;br /&gt;        return $this-&amp;gt;data-&amp;gt;renderWith(array($this-&amp;gt;template));&lt;br /&gt;    }&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Then there are two templates default templates.  &lt;br /&gt;Accordion.ss&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if Items %&amp;gt;&lt;br /&gt;&amp;lt;div id=&quot;accordion_{$ID}&quot;&amp;gt;&lt;br /&gt;    &amp;lt;% control Items %&amp;gt;&lt;br /&gt;    $Item&lt;br /&gt;    &amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;% else %&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;No entries found!&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Accordion_item.ss&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;h3&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;$Title&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;    &amp;lt;div&amp;gt;&lt;br /&gt;        $Content&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;And this is how to use it: &lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$items = DataObject::get('Tour', 'StartDatum &amp;gt; NOW()', 'StartDatum ASC', '', $count);&lt;br /&gt;        $UI = new Accordion($items, 'NextTouren');&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;As a third and fourth argument of Accordion you can pass your own template. The second parameter is not required and defaults to a unique ID.&lt;/p&gt;&lt;p&gt;My code is still under developement and there are several things which can be improved. So any hints and ideas are welcome!&lt;/p&gt;&lt;p&gt;I hope this helps and have fun codding!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: renderWith() and Object iteration in Template &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19009#post311157&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19009&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 16 Jan 2012 00:57:07 +1300</pubDate>
			<dc:creator>juergr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19009#post311157</guid>
		</item>
		
		<item>
			<title>renderWith() and Object iteration in Template</title>
			<link>http://www.silverstripe.org/template-questions/show/19009</link>
			<description>&lt;p&gt;Hey crew,&lt;/p&gt;&lt;p&gt;This question will be exposing some serious holes in my knowledge of programming. But here we go:&lt;/p&gt;&lt;p&gt;I have a custom class that extends Veiwable data and has a forTemplate() method to render the class.&lt;/p&gt;&lt;p&gt;Question 1: When I iterate through my set of these classes in a template, what is the best method to reference the Objects (of my class) so that it renders with my Template?&lt;/p&gt;&lt;p&gt;Question 2: What is the best Data type to reference my set as? At the moment I'm using DataObjectSet&lt;/p&gt;&lt;p&gt;Examples:&lt;/p&gt;&lt;p&gt;Class MyData.php:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class MyData extends ViewableData {&lt;/p&gt;&lt;p&gt;. . .&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function forTemplate() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $this-&amp;gt;renderWith(array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;class,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'MyData'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;. . .&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Class Page_Controller:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;. . .&lt;/p&gt;&lt;p&gt;function getMyDataSet() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return new DataObjectSet($myDataInstances);&lt;br /&gt;} &lt;/p&gt;&lt;p&gt;. . .&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Page Template:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% control MyDataSet %&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;errr... what do I reference my Object and render it with it's template via?&lt;/p&gt;&lt;p&gt;&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;----------------------------------------------------&lt;/p&gt;&lt;p&gt;My current solution is to do something like this:&lt;/p&gt;&lt;p&gt;Class MyData.php:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class MyData extends ViewableData {&lt;/p&gt;&lt;p&gt;. . .&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function getDataRenderedWithTemplate() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $this;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;. . .&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Page Template:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% control MyDataSet %&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$DataRenderedWithTemplate&lt;/p&gt;&lt;p&gt;&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: renderWith() and Object iteration in Template &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19009&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19009&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 15 Jan 2012 23:32:00 +1300</pubDate>
			<dc:creator>jdi</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19009</guid>
		</item>
		
		<item>
			<title>Re: Template overriding question</title>
			<link>http://www.silverstripe.org/template-questions/show/18974#post311122</link>
			<description>&lt;p&gt;At the moment themes override mysite. Like you found, there is discussion to change this but for now, you need to edit the theme or store you overrided templates in a subtheme like themes/xxxtheme_custom/.. which should? override themes/xxxtheme.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Template overriding question &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18974#post311122&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18974&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 14 Jan 2012 16:29:17 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18974#post311122</guid>
		</item>
		
		<item>
			<title>Re: Template overriding question</title>
			<link>http://www.silverstripe.org/template-questions/show/18974#post311026</link>
			<description>&lt;p&gt;I try to better explain my situation.&lt;/p&gt;&lt;p&gt;This is the priority of the files as far as I can see with some test:&lt;br /&gt;1 - themes/xxxtheme/css/style.css&lt;br /&gt;2 - module/css/style.css&lt;br /&gt;3 - mysite/css/style.css&lt;/p&gt;&lt;p&gt;Has anyone ever override /themes files (css or templates) with other files in /mysite folder? &lt;/p&gt;&lt;p&gt;Thanks for the help ;)&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Template overriding question &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18974#post311026&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18974&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 12 Jan 2012 05:56:50 +1300</pubDate>
			<dc:creator>Borgopio</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18974#post311026</guid>
		</item>
		
		<item>
			<title>Template overriding question</title>
			<link>http://www.silverstripe.org/template-questions/show/18974</link>
			<description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;my company is developing a module that will be shipped with a default theme. For our clients we want to provide also a little set of other themes, but also we want to allow any client to customize its installation (without modify the theme).&lt;/p&gt;&lt;p&gt;So I'm trying to use the override capabilities of the template system as stated in the doc: &lt;a href=&quot;http://doc.silverstripe.org/sapphire/en/topics/theme-development#overriding&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/sapphire/en/topics/theme-development#overriding&lt;/a&gt;&lt;br /&gt;but I've noticed that mysite/ (or any folder set in the $project) doesn't override anything existing in the theme. I've found this ticket &lt;a href=&quot;http://open.silverstripe.org/ticket/3300&quot; rel=&quot;nofollow&quot;&gt;http://open.silverstripe.org/ticket/3300&lt;/a&gt; and tried the patch on the SSViewer.php. Anyhow now I'm able only to override Layout templates but not /Includes or /css.&lt;/p&gt;&lt;p&gt;In the core dev group (&lt;a href=&quot;http://groups.google.com/group/silverstripe-dev/browse_thread/thread/d44d99dc7f264a0b/5367cb24766de047?lnk=gst&amp;amp;q=template+override#5367cb24766de047&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/silverstripe-dev/browse_thread/thread/d44d99dc7f264a0b/5367cb24766de047?lnk=gst&amp;amp;q=template+override#5367cb24766de047&lt;/a&gt;) seems that with SS3 the template order inclusion will be rewritten, but for now there's any suggestion to let mysite/ override theme/ files (.css or .ss)?&lt;/p&gt;&lt;p&gt;It seems to me that for every SS installation (with 2.x) I'll must edit in some way the theme I use. I'm right or maybe I've done something wrong?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Template overriding question &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18974&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18974&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 12 Jan 2012 03:37:11 +1300</pubDate>
			<dc:creator>Borgopio</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18974</guid>
		</item>
		
		<item>
			<title>2.45 -&gt; 2.46 form template problem</title>
			<link>http://www.silverstripe.org/template-questions/show/18963</link>
			<description>&lt;p&gt;here is the code i have used for all my silvertripe sites up until 2.46&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;/p&gt;&lt;p&gt;class EnquiryForm extends Page {&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;class EnquiryForm_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function Form() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return new Form($this, &quot;Form&quot;, new FieldSet(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// List your fields here&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField(&quot;Name&quot;, &quot;Full name *&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new EmailField(&quot;Email&quot;, &quot;Email address *&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField(&quot;Phone&quot;, &quot;Phone Number&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextareaField(&quot;Message&quot;, &quot;Message&quot;, &quot;3&quot;, &quot;18&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;), new FieldSet(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new FormAction(&quot;SubmitEnquiry&quot;, &quot;Submit&quot;)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;), &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new RequiredFields(&quot;Name&quot;, &quot;Email&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function SubmitEnquiry($data, $form) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$Enquiry = new Enquiry();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$form-&amp;gt;saveInto($Enquiry);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$form-&amp;gt;makeReadonly();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$email = new Email;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$email-&amp;gt;to = 'email@email.com'; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$email-&amp;gt;from = 'email@email.com';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$email-&amp;gt;subject = 'New Enquiry';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$email-&amp;gt;body = $form-&amp;gt;forTemplate();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$email-&amp;gt;send();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$Enquiry-&amp;gt;write();&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Redirect to a page thanking people for registering&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Director::redirect('thanks-for-your-enquiry/');&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;?&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;now on 2.46 i get this error: Generated with the default ContentController.ss template&lt;/p&gt;&lt;p&gt;I've never been able to move on to 2.46 because it breaks a lot of my templated code.&lt;br /&gt;whats wrong here? and should I expect these kinds of problems with the upcoming 3.0 release?&lt;/p&gt;&lt;p&gt;thanks for you time,&lt;br /&gt;peace,&lt;br /&gt;dan.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: 2.45 -&gt; 2.46 form template problem &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18963&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18963&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 11 Jan 2012 14:30:20 +1300</pubDate>
			<dc:creator>slavelabourer</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18963</guid>
		</item>
		
		<item>
			<title>Re: SOLVED - create a template page that does not extend any other</title>
			<link>http://www.silverstripe.org/template-questions/show/18945#post310950</link>
			<description>&lt;p&gt;thanks worked!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: SOLVED - create a template page that does not extend any other &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18945#post310950&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18945&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 10 Jan 2012 02:52:25 +1300</pubDate>
			<dc:creator>wake2010</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18945#post310950</guid>
		</item>
		
		<item>
			<title>Re: SOLVED - create a template page that does not extend any other</title>
			<link>http://www.silverstripe.org/template-questions/show/18945#post310949</link>
			<description>&lt;p&gt;instead of extending Page extend SiteTree&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class MainHomePage extends SiteTree {&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;class MainHomePage_Controller extends ContentController {&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;that should work. If the only reason you want to do this is to have custom CSS on your homepage, you can still extend Page and have different CSS for MainHomePage. &lt;/p&gt;&lt;p&gt;instead of putting your MainHomePage.ss template in /templates/layout, put MainHomePage.ss in your /templates folder and then use &amp;lt;% require themedCSS() %&amp;gt; to include the css files you want.&lt;/p&gt;&lt;p&gt;Another way to include CSS is through the use of Requirements in your init() function&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class MainHomePage_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt;       public function init() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parent::init();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Requirements::CSS('themes/'. SSViewer::current_theme() .'/css/file.css');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: SOLVED - create a template page that does not extend any other &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18945#post310949&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18945&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 10 Jan 2012 02:12:28 +1300</pubDate>
			<dc:creator>IOTI</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18945#post310949</guid>
		</item>
		
		<item>
			<title>SOLVED - create a template page that does not extend any other</title>
			<link>http://www.silverstripe.org/template-questions/show/18945</link>
			<description>&lt;p&gt;Hey, i am trying to make the main hope page tutorial not extend page as i am creating its own CSS and i have hit a snag&lt;/p&gt;&lt;p&gt;first, how do you make a the MainHomePage not be an extention of page.&lt;br /&gt;seccond, how do you add a unique CSS to one page?&lt;br /&gt;thanks for any help &lt;br /&gt;=]&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: SOLVED - create a template page that does not extend any other &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18945&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18945&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 10 Jan 2012 01:25:51 +1300</pubDate>
			<dc:creator>wake2010</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18945</guid>
		</item>
		
		<item>
			<title>Re: Trying to work with Tutorial.. problems :)</title>
			<link>http://www.silverstripe.org/template-questions/show/18932#post310917</link>
			<description>&lt;p&gt;Hi Silus&lt;/p&gt;&lt;p&gt;when you create a new pagetype like HomePage.phh, the next thing you need to do is call&lt;/p&gt;&lt;p&gt;mydomain.com/dev/build/?flush=1&lt;/p&gt;&lt;p&gt;dev/build will update the database for the new pagetype and add HomePage to the list of Pagetypes SilverStripe recognizes. &lt;/p&gt;&lt;p&gt;You'll be using a simple ?flush=1 when you need to refresh the cache after you change things like for instance in your templates...&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Trying to work with Tutorial.. problems :) &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18932#post310917&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18932&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 08 Jan 2012 08:20:43 +1300</pubDate>
			<dc:creator>martimiz</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18932#post310917</guid>
		</item>
		
		<item>
			<title>Trying to work with Tutorial.. problems :)</title>
			<link>http://www.silverstripe.org/template-questions/show/18932</link>
			<description>&lt;p&gt;HI everybody!&lt;/p&gt;&lt;p&gt;im new here, and i've build many websites with wordpress/joomla but its to much work and so, so after few weeks i've decided to use only this cms  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt;  So, im building my first template and i try to go with the &quot;Tutorial 1 - Building a Basic Site&quot; (html and css finished already).&lt;/p&gt;&lt;p&gt;when creating new file in mysite/code HomdePage.php and flushing page localhost:63464?flush=1 i cant change the home page to the new template coz its not there. i've copied the code, made new file and flushed.. cant see it. any help?&lt;/p&gt;&lt;p&gt;och, and i'll be a pain in the ass for some time, but when i make my way into understending all the cms things i need i'll work with it  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt;  so sorry, and thnak you for any reply and help that i can get  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Trying to work with Tutorial.. problems :) &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18932&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18932&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 07 Jan 2012 05:22:01 +1300</pubDate>
			<dc:creator>silus</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18932</guid>
		</item>
		
		<item>
			<title>Re: Hide Menu if only one page</title>
			<link>http://www.silverstripe.org/template-questions/show/14135#post310886</link>
			<description>&lt;p&gt;Hi CMRwebadmin,&lt;/p&gt;&lt;p&gt;Welcome to the Forums!&lt;/p&gt;&lt;p&gt;How about goign to the page in question, the Behaviour tab and then unchecking &quot;Show in menus?&quot;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Hide Menu if only one page &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/14135#post310886&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/14135&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 07 Jan 2012 02:16:48 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/14135#post310886</guid>
		</item>
		
		<item>
			<title>Re: Hide Menu if only one page</title>
			<link>http://www.silverstripe.org/template-questions/show/14135#post310871</link>
			<description>&lt;p&gt;Hi guys is there a way I can hide the menu on a particular page so that it can only be accessed via the link only please.&lt;/p&gt;&lt;p&gt;e.g. if the link to that page is &quot;www.cm-research.com/UKsurvey&quot; I want it so that the age can only be accessed by the link but can not be seen on the menu.&lt;/p&gt;&lt;p&gt;I have managed to get the particular page to appear on the menu, but I can't seem to figure out how to get the menu of the particular page.&lt;/p&gt;&lt;p&gt;any help would be greatly appreciated.&lt;/p&gt;&lt;p&gt;I am new to Silverstripe so please bare with me.&lt;/p&gt;&lt;p&gt;Many thanks in advance&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Hide Menu if only one page &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/14135#post310871&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/14135&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 06 Jan 2012 22:30:12 +1300</pubDate>
			<dc:creator>CMRwebadmin</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/14135#post310871</guid>
		</item>
		
		<item>
			<title>Re: Building menu with children of current page</title>
			<link>http://www.silverstripe.org/template-questions/show/18842#post310761</link>
			<description>&lt;p&gt;Thanks for the helpful info Willr! I got it working using the following structure:&lt;/p&gt;&lt;p&gt;&amp;lt;% if Menu(2) %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control Menu(2) %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;lt;% else %&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;p&gt;I feel like i tried this before and it did'nt work well but that did it. Thanks again and Happy New Year.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Building menu with children of current page &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18842#post310761&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18842&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 02 Jan 2012 17:08:00 +1300</pubDate>
			<dc:creator>dre</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18842#post310761</guid>
		</item>
		
		<item>
			<title>Re: problem accessing backend cms</title>
			<link>http://www.silverstripe.org/template-questions/show/18866#post310721</link>
			<description>&lt;p&gt;Thanks for your reply martimiz.&lt;br /&gt;Yes, its finally working. I had this $Form variable on my custom Home Page page type...maybe that's why it didn't work in the first place.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: problem accessing backend cms &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18866#post310721&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18866&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 29 Dec 2011 19:55:53 +1300</pubDate>
			<dc:creator>AL</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18866#post310721</guid>
		</item>
		
		<item>
			<title>Re: problem accessing backend cms</title>
			<link>http://www.silverstripe.org/template-questions/show/18866#post310711</link>
			<description>&lt;p&gt;If it's an exact copy of BlackCandy, it should work, at least after a ?flush=all ... Make sure the $Form variable is present in the content area of the Page.ss area, because that is what makes the (login)form appear. Make sure to flush again after you add it (if it's missing).&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: problem accessing backend cms &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18866#post310711&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18866&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 29 Dec 2011 03:27:28 +1300</pubDate>
			<dc:creator>martimiz</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18866#post310711</guid>
		</item>
		
		<item>
			<title>problem accessing backend cms</title>
			<link>http://www.silverstripe.org/template-questions/show/18866</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I've created a new theme, actually a copy of blackcandy.&lt;br /&gt;I've modified the _config.php file to SSViewer::set_theme('newtheme');&lt;br /&gt;And now I can't access the cms backend thru http://localhost/silverstripe/admin command. I can't log in because no form is displayed.&lt;br /&gt;The system automatically redirects to http://localhost/silverstripe/Security/login?BackURL=%2Fsilverstripe%2Fdev%2Fbuild &lt;br /&gt;and displays my new theme as i can find at http://localhost/silverstripe...&lt;br /&gt;I have no control over the cms.&lt;br /&gt;This happens every time I want to create a new theme.&lt;/p&gt;&lt;p&gt;Any ideas why?&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;Alex&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: problem accessing backend cms &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18866&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18866&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 29 Dec 2011 00:10:32 +1300</pubDate>
			<dc:creator>AL</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18866</guid>
		</item>
		
		<item>
			<title>Re: A page head for each section</title>
			<link>http://www.silverstripe.org/template-questions/show/5316?start=16#post310653</link>
			<description>&lt;p&gt;Hi togehter:)&lt;br /&gt;First the function works abolut great. &lt;br /&gt;Thx for the code... &lt;/p&gt;&lt;p&gt;But my question? is their a possibility to integrate some transition functions (e.g jquery slider  &lt;a href=&quot;http://flex.madebymufffin.com/&quot; rel=&quot;nofollow&quot;&gt;http://flex.madebymufffin.com/&lt;/a&gt;)? At the moment it´s a bit boring i think.&lt;/p&gt;&lt;p&gt;Thanks in advance for your help an idee´s&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: A page head for each section &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/5316?start=16#post310653&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/5316&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 21 Dec 2011 02:15:28 +1300</pubDate>
			<dc:creator>Bastir</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/5316?start=16#post310653</guid>
		</item>
		
		<item>
			<title>Re: How to pass parameters to $Breadcrumbs?</title>
			<link>http://www.silverstripe.org/template-questions/show/18843#post310652</link>
			<description>&lt;p&gt;Ok, this way it works like a charm.&lt;/p&gt;&lt;p&gt;So multiple parameters are not supported by the SSViewer?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How to pass parameters to $Breadcrumbs? &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18843#post310652&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18843&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 21 Dec 2011 02:13:17 +1300</pubDate>
			<dc:creator>juergr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18843#post310652</guid>
		</item>
		
		<item>
			<title>Re: How to pass parameters to $Breadcrumbs?</title>
			<link>http://www.silverstripe.org/template-questions/show/18843#post310640</link>
			<description>&lt;p&gt;Try setting that configuration in your Page class.&lt;/p&gt;&lt;p&gt;public function Breadcrumbs() {&lt;br /&gt;return parent::Breadcrumbs(20, false, false, true);&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;Then you can simply use $Breadcrumbs in your template. I think the issue would be around passing so many arguments to SSViewer.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How to pass parameters to $Breadcrumbs? &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18843#post310640&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18843&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 20 Dec 2011 15:51:31 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18843#post310640</guid>
		</item>
		
		<item>
			<title>Re: Building menu with children of current page</title>
			<link>http://www.silverstripe.org/template-questions/show/18842#post310639</link>
			<description>&lt;p&gt;I recommend consulting the documentation on templates and try a couple things out (&lt;a href=&quot;http://doc.silverstripe.org/sapphire/en/reference/built-in-page-controls&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/sapphire/en/reference/built-in-page-controls&lt;/a&gt;). Level($num) is handy and &amp;lt;% control statements %&amp;gt;&lt;/p&gt;&lt;p&gt;In 2.4 you can use something lik&lt;br /&gt;&amp;lt;% if Level(1) %&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;% if Children %&amp;gt;&lt;br /&gt;&amp;lt;% control Children %&amp;gt;&lt;br /&gt;// children of this page (1)&lt;br /&gt;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;% else_if Level(2) %&amp;gt;&lt;br /&gt;&amp;lt;% control Parent %&amp;gt;&lt;br /&gt;&amp;lt;% if  Children %&amp;gt;&lt;br /&gt;&amp;lt;% control Children %&amp;gt;&lt;br /&gt;// siblings of this page (2)&lt;br /&gt;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Building menu with children of current page &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18842#post310639&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18842&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 20 Dec 2011 15:48:10 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18842#post310639</guid>
		</item>
		
		<item>
			<title>How to pass parameters to $Breadcrumbs?</title>
			<link>http://www.silverstripe.org/template-questions/show/18843</link>
			<description>&lt;p&gt;I want to display Hidden pages in the Breadcrumbs and I tried different things, but nothing seems to work. &lt;/p&gt;&lt;p&gt;Basicaly this is my BreadCrumbs.ss:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;div id=&quot;Breadcrumbs&quot; class=&quot;grid_9 alpha&quot;&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;$Breadcrumbs&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;And I include it in the Page.ss like this: &lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if Level(2) %&amp;gt;&lt;br /&gt;    &amp;lt;% include BreadCrumbs %&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;At first i was trying to simply pass the parameters like this, bit this is not working, the breadcrumbs stay the same&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$Breadcrumbs(20, false, false, true)&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;then I tried this: (as described here: &lt;a href=&quot;http://doc.silverstripe.org/sapphire/en/reference/built-in-page-controls#site-navigation-breadcrumbs&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/sapphire/en/reference/built-in-page-controls#site-navigation-breadcrumbs&lt;/a&gt;&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;div id=&quot;Breadcrumbs&quot; class=&quot;grid_9 alpha&quot;&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;&amp;lt;% control Breadcrumbs(20, false, false, true) %&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;But then I get a error, of course, there is a missing end_control! But if I add this missing piece, the breadcrumbs dissapear. &lt;/p&gt;&lt;p&gt;So, can anyone help me please? What am I doing wrong?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How to pass parameters to $Breadcrumbs? &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/18843&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/18843&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 20 Dec 2011 09:15:52 +1300</pubDate>
			<dc:creator>juergr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/18843</guid>
		</item>
		

	</channel>
</rss>
