<?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>Forum posts to 'Template Questions'</title>
		<link>http://www.silverstripe.org/template-questions/rss</link>
		<atom:link href="http://www.silverstripe.org/template-questions/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Re: a "require" block in a "if/end_if" block : is it possible</title>
			<link>http://www.silverstripe.org/template-questions/show/281072?start=0#post281240</link>
			<description>&lt;p&gt;Thanks  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: a &quot;require&quot; block in a &quot;if/end_if&quot; block : is it possible &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/281072?start=0#post281240&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/281072?start=0#post281240&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 20 Mar 2010 06:22:19 +1300</pubDate>
			<dc:creator>Myrdhin</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/281072?start=0#post281240</guid>
		</item>
		
		<item>
			<title>Re: Two templates for every page</title>
			<link>http://www.silverstripe.org/template-questions/show/280959?start=0#post281165</link>
			<description>&lt;p&gt;Hi WebDev,&lt;/p&gt;&lt;p&gt;Banal has you covered here but....If you haven't already I strongly recommend grabbing a copy of the Silverstripe book. &lt;a href=&quot;http://www.amazon.com/SilverStripe-Complete-Guide-Development-Wiley/dp/0470681837/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1268887245&amp;amp;sr=8-1-spell&quot;&gt;http://www.amazon.com/SilverStripe-Complete-Guide-Development-Wiley/dp/0470681837/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1268887245&amp;amp;sr=8-1-spell&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;There is a whole section in there on Silverstripe's built in and ready RESTful services. By default it is disabled but it is ready and waiting there to be used. Not sure if it is limited to only DataObjects though, so you may need to look further into that.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Two templates for every page &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280959?start=0#post281165&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/280959?start=0#post281165&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 18 Mar 2010 17:41:21 +1300</pubDate>
			<dc:creator>chingochango</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280959?start=0#post281165</guid>
		</item>
		
		<item>
			<title>Re: a "require" block in a "if/end_if" block : is it possible</title>
			<link>http://www.silverstripe.org/template-questions/show/281072?start=0#post281104</link>
			<description>&lt;p&gt;You can put Requirements calls anywhere but they won't respect &amp;lt;% if %&amp;gt; blocks.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: a &quot;require&quot; block in a &quot;if/end_if&quot; block : is it possible &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/281072?start=0#post281104&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/281072?start=0#post281104&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 17 Mar 2010 18:21:07 +1300</pubDate>
			<dc:creator>Hamish</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/281072?start=0#post281104</guid>
		</item>
		
		<item>
			<title>Re: a "require" block in a "if/end_if" block : is it possible</title>
			<link>http://www.silverstripe.org/template-questions/show/281072?start=0#post281096</link>
			<description>&lt;p&gt;I'm not sure if you can even put &amp;lt;% requirements .. %&amp;gt; in if blocks (although i see no reason why not). However, i have never known != to work in the templating language (despite what the recipes / docs / tutorials say) so you have to go:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if ClassName = HomePage %&amp;gt;&amp;lt;% else %&amp;gt;&lt;br /&gt;....&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: a &quot;require&quot; block in a &quot;if/end_if&quot; block : is it possible &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/281072?start=0#post281096&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/281072?start=0#post281096&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 17 Mar 2010 12:50:14 +1300</pubDate>
			<dc:creator>Pigeon</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/281072?start=0#post281096</guid>
		</item>
		
		<item>
			<title>Place image in sidebar</title>
			<link>http://www.silverstripe.org/template-questions/show/281079#post281079</link>
			<description>&lt;p&gt;I've been searching for this topic and have found some answers, but not quite what I need. I have 16 pages out of all the pages in my site in which I need to place an image (a different one for each of the 16 pages) in the sidebar area. I have already created a pgmpage page type for these pages to differentiate them from the regular pages. I've tried creating a &quot;sidebar&quot; page and typing &quot;&amp;lt;div id=&quot;Sidebar&quot; class=&quot;typography&quot;&amp;gt;$Page(SidebarPage).Content&amp;lt;/div&amp;gt; in my Page.ss code and it works, but it places the same image in every page. Close, but not really. I seem to not know enough about the coding to make the sidebar only appear on certain pages, then assign different images to each sidebar on each page. Would someone know how to do this? Thanks.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Place image in sidebar &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/281079#post281079&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/281079#post281079&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 17 Mar 2010 08:09:56 +1300</pubDate>
			<dc:creator>jseth</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/281079#post281079</guid>
		</item>
		
		<item>
			<title>a "require" block in a "if/end_if" block : is it possible</title>
			<link>http://www.silverstripe.org/template-questions/show/281072#post281072</link>
			<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I try do to that :&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if ClassName != HomePage %&amp;gt;&lt;br /&gt;    &amp;lt;% require themedCSS(pageLayout) %&amp;gt;&lt;br /&gt;    &amp;lt;% require themedCSS(pageTypography) %&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;But it doesn't work : the pageLayout and pageTypography CSS files are read when i call a HomePage type. I know it's possible to do in the init() function in the controller classes (other than HomePage_controller) but i would like to do in the template.&lt;/p&gt;&lt;p&gt;Is it possible ? Perhaps i do a mistake ?&lt;br /&gt;thanks for your help.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: a &quot;require&quot; block in a &quot;if/end_if&quot; block : is it possible &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/281072#post281072&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/281072#post281072&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 17 Mar 2010 05:26:52 +1300</pubDate>
			<dc:creator>Myrdhin</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/281072#post281072</guid>
		</item>
		
		<item>
			<title>Re: Two templates for every page</title>
			<link>http://www.silverstripe.org/template-questions/show/280959?start=0#post280961</link>
			<description>&lt;p&gt;There's also another possibility, where you don't even need two different URLs (eg. just &lt;em&gt;/news&lt;/em&gt;, instead of &lt;em&gt;/news&lt;/em&gt; and &lt;em&gt;/news/json&lt;/em&gt;).&lt;br /&gt;You could do that by detecting AJAX requests in your &lt;em&gt;index&lt;/em&gt; action and return JSON data if an ajax request was detected.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public function index(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// detect ajax request. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// If it's not an ajax request return array() to render with default template&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(Director::is_ajax() == false){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return array();&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;// populate some data. This is just an example:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$data = array( 'Title' =&amp;gt; $this-&amp;gt;Title, 'Content' =&amp;gt; $this-&amp;gt;Content );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// return data encoded as json&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return json_encode($data);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Director::is_ajax()&lt;/em&gt; will automatically detect AJAX requests. To test this, you can also append &lt;em&gt;?ajax=1&lt;/em&gt; to the URL and see the AJAX output.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Two templates for every page &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280959?start=0#post280961&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/280959?start=0#post280961&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 15 Mar 2010 22:31:21 +1300</pubDate>
			<dc:creator>banal</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280959?start=0#post280961</guid>
		</item>
		
		<item>
			<title>Re: Two templates for every page</title>
			<link>http://www.silverstripe.org/template-questions/show/280959?start=0#post280960</link>
			<description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;That's rather easy to do.&lt;br /&gt;Just create a separate action in your page controller class, something like this:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public function json(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return array();&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Then you can create a template for this, example: &lt;em&gt;Page_json.ss&lt;/em&gt;&lt;/p&gt;&lt;p&gt;This template will then be used, when you call the json action on the controller.. this is as easy as: &lt;em&gt;/pageurl/json&lt;/em&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Two templates for every page &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280959?start=0#post280960&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/280959?start=0#post280960&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 15 Mar 2010 22:12:05 +1300</pubDate>
			<dc:creator>banal</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280959?start=0#post280960</guid>
		</item>
		
		<item>
			<title>Two templates for every page</title>
			<link>http://www.silverstripe.org/template-questions/show/280959#post280959</link>
			<description>&lt;p&gt;Hi.&lt;br /&gt;I need SS to publish every page in my project into two separate templates - HTML file and JSON file.&lt;br /&gt;For example, if I have a page 'News', I would like to publish it into /news as HTML and /news-json as JSON.&lt;br /&gt;What is the easiest way to do that?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Two templates for every page &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280959#post280959&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280959#post280959&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 15 Mar 2010 21:14:48 +1300</pubDate>
			<dc:creator>webdev</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280959#post280959</guid>
		</item>
		
		<item>
			<title>Re: If blocks in email templates?</title>
			<link>http://www.silverstripe.org/template-questions/show/280930?start=0#post280943</link>
			<description>&lt;p&gt;In the templating language one doesn't use $ to assign variables / functions within the opening and closing brackets (&amp;lt;% %&amp;gt;)&lt;/p&gt;&lt;p&gt;So it is like this:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if checkbox %&amp;gt;&lt;br /&gt;$Message&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: If blocks in email templates? &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280930?start=0#post280943&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/280930?start=0#post280943&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 15 Mar 2010 11:59:56 +1300</pubDate>
			<dc:creator>Pigeon</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280930?start=0#post280943</guid>
		</item>
		
		<item>
			<title>Re: removing footer etc from a sub-template</title>
			<link>http://www.silverstripe.org/template-questions/show/280903?start=0#post280941</link>
			<description>&lt;p&gt;Ok I tried again making the HomePage a template in /templates/ folder and it worked this time, not sure what I did wrong before, i don't think I had it in the Layout folder before ... but anyways, working now so all good  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/grin.gif'&gt;  thanks&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: removing footer etc from a sub-template &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280903?start=0#post280941&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/280903?start=0#post280941&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 15 Mar 2010 11:54:14 +1300</pubDate>
			<dc:creator>Scorpiankh</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280903?start=0#post280941</guid>
		</item>
		
		<item>
			<title>If blocks in email templates?</title>
			<link>http://www.silverstripe.org/template-questions/show/280930#post280930</link>
			<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;is there a way to use if statements in email submussion forms? When I use the template if blocks:&lt;/p&gt;&lt;p&gt;&amp;lt;% if $checkbox %&amp;gt;  Write Hello &amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;p&gt;I always get follwoing error:&lt;/p&gt;&lt;p&gt;Parse error: syntax error, unexpected '}' in ../email_template.ss  on line 107&lt;/p&gt;&lt;p&gt;Do u know how to get this to work?&lt;/p&gt;&lt;p&gt;thx,&lt;br /&gt;Plautzer&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: If blocks in email templates? &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280930#post280930&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280930#post280930&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 15 Mar 2010 07:36:26 +1300</pubDate>
			<dc:creator>plautzer</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280930#post280930</guid>
		</item>
		
		<item>
			<title>Re: Counting rows in template language</title>
			<link>http://www.silverstripe.org/template-questions/show/280906?start=0#post280908</link>
			<description>&lt;p&gt;2.4 added a modulus factor into ViewableData. The change was applied here: &lt;a href=&quot;http://open.silverstripe.org/changeset/95584&quot;&gt;http://open.silverstripe.org/changeset/95584&lt;/a&gt;&lt;/p&gt;&lt;p&gt;You could probably use something like that. It uses modulus in PHP (%) to do what you're looking for.&lt;/p&gt;&lt;p&gt;Sean&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Counting rows in template language &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280906?start=0#post280908&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/280906?start=0#post280908&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 14 Mar 2010 19:54:59 +1300</pubDate>
			<dc:creator>Sean</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280906?start=0#post280908</guid>
		</item>
		
		<item>
			<title>Re: removing footer etc from a sub-template</title>
			<link>http://www.silverstripe.org/template-questions/show/280903?start=0#post280907</link>
			<description>&lt;p&gt;You are probably using a HomePage sub template (eg a HomePage.ss inside yourtheme/templates/Layout/.) this means that the template parser will use Page.ss in yourtheme/templates which has the header / footer. What you want to do is define HomePage.ss as a root template (in yourtheme/templates/ rather than a subtemplate. Then Page.ss will not be used at all.&lt;/p&gt;&lt;p&gt;Other option is to wrap your header / footer in Page.ss with &amp;lt;% if URLSegment != home %&amp;gt;...&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: removing footer etc from a sub-template &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280903?start=0#post280907&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/280903?start=0#post280907&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 14 Mar 2010 16:11:04 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280903?start=0#post280907</guid>
		</item>
		
		<item>
			<title>Counting rows in template language</title>
			<link>http://www.silverstripe.org/template-questions/show/280906#post280906</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I need some way to create x many objects add a clearing class and add another create x many objects add another clearing class and continue. Example = thumbnails of photos in a gallery. Yes i could use a table but I would run into the same problem. The kind of functionality I'm looking for is similar to Even and Odd, but not with a base of 2.&lt;/p&gt;&lt;p&gt;In php i would do something like:&lt;br /&gt;$j =0;&lt;br /&gt;for ($i =0; $i &amp;lt; $total; $i++) {&lt;br /&gt;     echo $something;&lt;br /&gt;     $j++;&lt;br /&gt;     if($j == 5) {&lt;br /&gt;          echo '&amp;lt;div class=&quot;clear&quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;';&lt;br /&gt;          $j=0;&lt;br /&gt;     }&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;What I've done is added the below code to ViewableData:&lt;br /&gt;        /*&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Return if we have a complete row or not&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @param int $denominator, which defaults to 1.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @return boolean&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function IsDivisibleBy($denominator = 1) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (is_int(($this-&amp;gt;iteratorPos+1) / $denominator)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return false;&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;I can then use the below in my template class:&lt;br /&gt;&amp;lt;% if IsDivisibleBy(3) %&amp;gt;&lt;/p&gt;&lt;p&gt;Is there a better way?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Counting rows in template language &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280906#post280906&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280906#post280906&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 14 Mar 2010 15:44:58 +1300</pubDate>
			<dc:creator>hawk</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280906#post280906</guid>
		</item>
		
		<item>
			<title>removing footer etc from a sub-template</title>
			<link>http://www.silverstripe.org/template-questions/show/280903#post280903</link>
			<description>&lt;p&gt;For a website I'm working on, the homepage needs to have a completely different layout from the rest of the site, also it has a different header and menu, and no foooter. &lt;/p&gt;&lt;p&gt;I tried makin the HomePage a template extending from sitetree first but it was still including the header menu and footer from the Page page type. &lt;/p&gt;&lt;p&gt;Also tried making it a subtemplate of Page and used $URLSegemnt in the &amp;lt;body&amp;gt; tag to create a page id so I could try and remove or make the items display differently in the css file, which half worked, checking the source code once the page had been generated it was showing the homepage with &amp;lt;body id=&quot;home&quot;&amp;gt; but none of my #home css styles were being applied to the page. &lt;/p&gt;&lt;p&gt;So is there a way to either make the HomePage page type not inherit from the Page page type, or to remove the header menu and footer in the template? &lt;/p&gt;&lt;p&gt;The only other way i can think of to do it at the mo is to leave the Page page type blank inside the body tags and include the header footer and menu individually on each sub-template except the HomePage.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: removing footer etc from a sub-template &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280903#post280903&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280903#post280903&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 14 Mar 2010 14:49:57 +1300</pubDate>
			<dc:creator>Scorpiankh</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280903#post280903</guid>
		</item>
		
		<item>
			<title>Re: CSS dropdown/if-block</title>
			<link>http://www.silverstripe.org/template-questions/show/280658?start=0#post280672</link>
			<description>&lt;p&gt;You could add a &amp;lt;% if ShowSubMenu %&amp;gt; around the &amp;lt;% if Children %&amp;gt; then make a function like this in your Page class in mysite/code/Page.php&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function ShowSubMenu() {&lt;br /&gt;$ignored = array('news', 'giftshop');&lt;/p&gt;&lt;p&gt;return (!in_array($this-&amp;gt;URLSegment, $ignored));&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;In that example I use the URL, but you could use ClassName if they have individual / unique classes. Thats probably safer say if you renamed giftshop later on.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: CSS dropdown/if-block &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280658?start=0#post280672&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/280658?start=0#post280672&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 11 Mar 2010 11:33:57 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280658?start=0#post280672</guid>
		</item>
		
		<item>
			<title>CSS dropdown/if-block</title>
			<link>http://www.silverstripe.org/template-questions/show/280658#post280658</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I'm incredibly new to using Silverstripe so forgive me for anything daft I might say.&lt;/p&gt;&lt;p&gt;I've been working on a website here: &lt;a href=&quot;http://dev.whhf.org.nz/&quot;&gt;http://dev.whhf.org.nz&lt;/a&gt; - putting a CSS drop-down menu on the navigation.  It's working fine but the problem is that the code calls the children of each page that's in the nav.  If you hover over the 'news' link, a gigantic drop-down list appears because there are hundreds of news items which are children of the news page.  &lt;/p&gt;&lt;p&gt;Is it possible for me to have SS call the children for all the pages EXCEPT 'news' and 'giftshop'?&lt;/p&gt;&lt;p&gt;Here's the code I currently have in Navigation.ss:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;ul id=&quot;menu&quot;&amp;gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control Menu(1) %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% if Last %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;li class=&quot;li-top&quot;&amp;gt;&amp;lt;a href=&quot;$Link&quot; title=&quot;Go to the $Title.XML page&quot; class=&quot;$LinkingMode top sub last&quot; style=&quot;margin-left: 0px;&quot;&amp;gt;$MenuTitle&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% if Children %&amp;gt;&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;&amp;lt;ul class=&quot;leveltwo&quot;&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control Children %&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$Link&quot; class=&quot;$LinkingMode&quot; title=&quot;$Title&quot;&amp;gt;$MenuTitle&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&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;&amp;lt;/ul&amp;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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% else %&amp;gt;&lt;br /&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;li class=&quot;li-top&quot;&amp;gt;&amp;lt;a href=&quot;$Link&quot; title=&quot;Go to the $Title.XML page&quot; class=&quot;$LinkingMode top sub&quot;&amp;gt;$MenuTitle&amp;lt;/a&amp;gt;&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;&amp;lt;% if Children %&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;ul class=&quot;leveltwo&quot;&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control Children %&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$Link&quot; class=&quot;$LinkingMode&quot; title=&quot;$Title&quot;&amp;gt;$MenuTitle&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/ul&amp;gt;&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;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&lt;br /&gt; &amp;lt;/ul&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Any help will be greatly appreciated.  Please try to explain things to me as simply as possible if you can..  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: CSS dropdown/if-block &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280658#post280658&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280658#post280658&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 11 Mar 2010 09:12:46 +1300</pubDate>
			<dc:creator>junkbunny</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280658#post280658</guid>
		</item>
		
		<item>
			<title>Re: Breaking lines in top menu items </title>
			<link>http://www.silverstripe.org/template-questions/show/256981?start=0#post280643</link>
			<description>&lt;p&gt;hello Victor&lt;br /&gt;i am having the same problem,are you able to solve it&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Breaking lines in top menu items  &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/256981?start=0#post280643&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/256981?start=0#post280643&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 11 Mar 2010 07:12:23 +1300</pubDate>
			<dc:creator>Rishi</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/256981?start=0#post280643</guid>
		</item>
		
		<item>
			<title>Set mainTemplate at runtime?</title>
			<link>http://www.silverstripe.org/template-questions/show/280608#post280608</link>
			<description>&lt;p&gt;Hey guys, is it possible to set the mainTemplate that is used in a page controller function? &lt;/p&gt;&lt;p&gt;I tried using 'return $this-&amp;gt;renderWidth(&quot;Ajax&quot;);' but to no avail. It just displays the Ajax.ss template as the $Layout for the standard mainTemplate (Page.ss).&lt;/p&gt;&lt;p&gt;I checked the core SSViwer.php code and saw a guard in there - so tried using '$this-&amp;gt;renderWidth(&quot;Ajax.ss&quot;)' but it returns an error: &lt;br /&gt;[Warning] filemtime() [function.filemtime]: stat failed for Ajax.ss&lt;/p&gt;&lt;p&gt;Can anyone help me? I'm truely stumped. &lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Set mainTemplate at runtime? &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280608#post280608&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280608#post280608&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 22:30:14 +1300</pubDate>
			<dc:creator>fabilo</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280608#post280608</guid>
		</item>
		
		<item>
			<title>Re: CSS, can't get it working</title>
			<link>http://www.silverstripe.org/template-questions/show/280567?start=0#post280594</link>
			<description>&lt;p&gt;Handy tip for working with CSS is to install Firebug. Its a plugin for firefox. You'll be able to check easily then if your css file is even being included, or if its been overridden by styles from another one.&lt;/p&gt;&lt;p&gt;Install that, then check your css is loading, then check what rules are overriding it.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: CSS, can't get it working &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280567?start=0#post280594&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/280567?start=0#post280594&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 16:49:12 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280567?start=0#post280594</guid>
		</item>
		
		<item>
			<title>CSS, can't get it working</title>
			<link>http://www.silverstripe.org/template-questions/show/280567#post280567</link>
			<description>&lt;p&gt;Hello silverstripe people,&lt;/p&gt;&lt;p&gt;I'm new here so i'll introduce myself real quick before i start asking some questions ;)&lt;/p&gt;&lt;p&gt;My name is Bryan i am 18 years old and i live in the netherlands. I'm currently studying IT and i enjoy webdesign/development alot.&lt;br /&gt;My hobby's are music and anything that has to do with computers.&lt;/p&gt;&lt;p&gt;So lets get to the question part.&lt;/p&gt;&lt;p&gt;I've got a client who i am designing a website for, but as i am short on time (got a big project coming up) i needed to download a open source CMS.&lt;/p&gt;&lt;p&gt;After messing around with CMS Made Simple (wich refused to work on the public webserver), i found SilverStripe. &lt;br /&gt;So this is my first SS project and i'm already stuck.&lt;/p&gt;&lt;p&gt;I was following the tutorial on the site to get the website to work.&lt;br /&gt;Got it working etc. except for 1 thing:&lt;br /&gt;The background is light blue whilest in my CSS i defined it to be light orange, same with the on-mouse-over state that is build in with SS.&lt;/p&gt;&lt;p&gt;Here is my page.ss:&lt;/p&gt;&lt;p&gt;--- HTML ---&lt;br /&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&lt;br /&gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;title&amp;gt;Brenda's Little Aussies.nl&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% base_tag %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;themes/tutorial/css/css_Content.css&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;themes/tutorial/css/css_Layout.css&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;themes/tutorial/css/css_Navigation.css&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;themes/tutorial/css/css_Tags.css&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;body bgcolor=&quot;#d9b078&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;center&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div id=&quot;layout_Container&quot;&amp;gt;&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;&amp;lt;div id=&quot;layout_Banner&quot;&amp;gt;&amp;lt;/div&amp;gt;&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;&amp;lt;div id=&quot;layout_Navigation&quot;&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;ul id=&quot;nav_Buttons&quot;&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;li id=&quot;nav_Sep&quot;&amp;gt;&amp;lt;/li&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control Menu(1) %&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;li id=&quot;nav_Button&quot; class=&quot;$LinkingMode&quot;&amp;gt;&amp;lt;a href=&quot;$Link&quot; id=&quot;nav_Link&quot; title=&quot;Go to the &amp;amp;quot;{$Title}&amp;amp;quot; page&quot;&amp;gt;$MenuTitle&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;li id=&quot;nav_Sep&quot;&amp;gt;&amp;lt;/li&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/ul&amp;gt;&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;&amp;lt;/div&amp;gt;&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;&amp;lt;div id=&quot;layout_Content&quot;&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;span id=&quot;content_Title&quot;&amp;gt;$Title&amp;lt;/span&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;span id=&quot;content_Body&quot;&amp;gt;$Content $Form&amp;lt;/span&amp;gt;&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;&amp;lt;/div&amp;gt;&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;&amp;lt;div id=&quot;layout_Footer&quot;&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;span id=&quot;footer_Disclaimer&quot;&amp;gt;All images on this website belong to their respective owners&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;span id=&quot;footer_Copyright&quot;&amp;gt;Design by BD-Designs &amp;amp;copy;&amp;lt;/span&amp;gt;&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;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/center&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$SilverStripeNavigator&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;--- END HTML ---&lt;/p&gt;&lt;p&gt;And this is the body part of my css (wich is in css_Tags.css)&lt;/p&gt;&lt;p&gt;--- CSS ---&lt;br /&gt;body {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;background-color: #d9b078;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;--- END CSS --&lt;/p&gt;&lt;p&gt;And the on mouse over state in css_Navigation.css&lt;/p&gt;&lt;p&gt;--- CSS ---&lt;br /&gt;li.current {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;color: #ffdec5;&lt;br /&gt;}&lt;br /&gt;--- END CSS ---&lt;/p&gt;&lt;p&gt;When i run the script and add ?flush=1 at the end (or not) the background is light blue.&lt;/p&gt;&lt;p&gt;I used the tutorial template folder and just cleared that out as i had no clue how to change the template once i have selected one.&lt;/p&gt;&lt;p&gt;I hope someone can help me.&lt;/p&gt;&lt;p&gt;Thank you in advance.&lt;/p&gt;&lt;p&gt;Sincerely,&lt;/p&gt;&lt;p&gt;Bryan a.k.a. Fakey&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: CSS, can't get it working &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280567#post280567&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280567#post280567&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 09:12:23 +1300</pubDate>
			<dc:creator>Fakey</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280567#post280567</guid>
		</item>
		
		<item>
			<title>Re: [Tutorial] Using Zend_Layout and Zend_View with SilverStripe</title>
			<link>http://www.silverstripe.org/template-questions/show/280491?start=0#post280503</link>
			<description>&lt;p&gt;Hi there&lt;/p&gt;&lt;p&gt;Thanks for this. It's always good to see how to integrate other systems into SilverStripe for more flexibility.&lt;br /&gt;Personally I have also used Zend Framework professionally, although I wasn't too fond of &lt;em&gt;Zend_View&lt;/em&gt; myself. &lt;br /&gt;You're right however, there have been comments about the lack of flexibility in the SilverStripe template-engine, so these people now have an alternative. Never thought it would be &lt;em&gt;that&lt;/em&gt; easy to implement ;-)&lt;/p&gt;&lt;p&gt;I suggest you put this up on &lt;a href=&quot;http://www.ssbits.com/&quot;&gt;http://www.ssbits.com&lt;/a&gt;, so that it doesn't get lost in these forums.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: [Tutorial] Using Zend_Layout and Zend_View with SilverStripe &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280491?start=0#post280503&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/280491?start=0#post280503&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 09 Mar 2010 19:54:53 +1300</pubDate>
			<dc:creator>banal</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280491?start=0#post280503</guid>
		</item>
		
		<item>
			<title>[Tutorial] Using Zend_Layout and Zend_View with SilverStripe</title>
			<link>http://www.silverstripe.org/template-questions/show/280491#post280491</link>
			<description>&lt;p&gt;Over the last year or so, I've noticed many comments about the SilverStripe template language being unnecessary, or people having issues with it (trying to gain more flexibility).&lt;/p&gt;&lt;p&gt;It is actually fairly easy to use an alternate templating system, and I felt I would post a brief tutorial on how to use Zend_Layout and Zend_View with SilverStripe.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Assumptions:&lt;/strong&gt;&lt;br /&gt;- Custom code in an &quot;/application&quot; subdirectory.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;1. Setup Zend Framework&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;- Download and place Zend Framework to a directory (eg. /_lib/). It's important to prefix with an underscore so SilverStripe's ManifestBuilder skips it.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;2. Include Zend Framework in include path&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;- In your &quot;_config.php&quot; file for your application, be sure to include ZF. Example:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$zend_lib_path = realpath( '..' . DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR . '_lib';&lt;br /&gt;set_include_path( $zend_lib_path . PATH_SEPARATOR . get_include_path() );&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;3. Extend ContentController with a custom Page controller&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;- Usually, most people create a &quot;Page&quot; class that extends &quot;SiteTree&quot;, along with a &quot;Page_Controller&quot; that extends &quot;ContentController&quot;. This is pretty standard, however we want to override a particular method called &quot;handleAction()&quot; to perform our integration.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;require_once 'Zend/Layout.php';&lt;br /&gt;require_once 'Zend/View.php';&lt;/p&gt;&lt;p&gt;class Page_Controller extends ContentController&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;protected $layout;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;protected $view;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function __construct( $dataRecord = null )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parent::__construct( $dataRecord );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;initLayout();&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;public function index()&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;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;private function initLayout()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$view = new Zend_View();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$view-&amp;gt;setScriptPath( '../application/_views/scripts' );&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;$layout = new Zend_Layout();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$layout-&amp;gt;setLayoutPath('../application/_layouts/scripts');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$layout-&amp;gt;setView( $view );&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;$this-&amp;gt;view = $view;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;layout = $layout;&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;public function handleAction( $request )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;action = str_replace( '-', '_', $request-&amp;gt;param( 'Action' ) );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;requestParams = $request-&amp;gt;requestVars();&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;if ( !$this-&amp;gt;action )&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;$this-&amp;gt;action = 'index';&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;$controller = $this-&amp;gt;ClassName;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$action = $this-&amp;gt;action;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// run &amp;amp; init are manually disabled, because they create infinite loops and other dodgy situations &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ( in_array( strtolower( $action ), array( 'run', 'init' ) ) || !$this-&amp;gt;hasMethod( $action ) )&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;return;&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;$this-&amp;gt;$action( $request );&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;$this-&amp;gt;layout-&amp;gt;controller = $controller;&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;// Assign all ContentObject values to view&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;view-&amp;gt;object = $this-&amp;gt;dataRecord;&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;// Default view handling&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;layout-&amp;gt;content = $this-&amp;gt;view-&amp;gt;render( $controller . DIRECTORY_SEPARATOR . $action . '.phtml' );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo $this-&amp;gt;layout-&amp;gt;render();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exit;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;- Above you will see that we hijack SilverStripe's &quot;handleAction&quot; method to use Zend_Layout and Zend_View for template processing.&lt;/p&gt;&lt;p&gt;- To make things easy, we assign the current data record to a Zend_View object called &quot;object&quot;.&lt;/p&gt;&lt;p&gt;- By default, the current controller action will attempt to load a view from /_views/scripts/[CONTROLLER]/[ACTION].phtml  This is similar to how Zend Framework handles things by default. For instance, for the &quot;index&quot; action for &quot;Page&quot;, it would load: /_views/scripts/Page/index.phtml&lt;/p&gt;&lt;p&gt;&lt;strong&gt;4. Start using Zend_Layout and Zend_View&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;- The basics are now all in place and you may setup your templates according to standard Zend_View conventions, using helpers and all.&lt;/p&gt;&lt;p&gt;- Extend this &quot;Page&quot; class and &quot;Page_Controller&quot; with your own custom pages to use the Zend templating.&lt;/p&gt;&lt;p&gt;- Note: Several core SilverStripe pages will not use this, so you will still need to use a &quot;Page.ss&quot; for some things. Eg. login screen, forgot password, etc.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;To conclude&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Please post any questions you might have, as the above is brief and should provide enough guidance for experienced users.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: [Tutorial] Using Zend_Layout and Zend_View with SilverStripe &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280491#post280491&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280491#post280491&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 09 Mar 2010 12:57:28 +1300</pubDate>
			<dc:creator>Christopher_S</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280491#post280491</guid>
		</item>
		
		<item>
			<title>Re: generating a CSS page, possible bug? 404 error</title>
			<link>http://www.silverstripe.org/template-questions/show/280175?start=0#post280481</link>
			<description>&lt;p&gt;any thoughts on this?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: generating a CSS page, possible bug? 404 error &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280175?start=0#post280481&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/280175?start=0#post280481&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 09 Mar 2010 10:35:56 +1300</pubDate>
			<dc:creator>vancouverWill</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280175?start=0#post280481</guid>
		</item>
		
		<item>
			<title>Re: Appending .px to template variable</title>
			<link>http://www.silverstripe.org/template-questions/show/279407?start=0#post280424</link>
			<description>&lt;p&gt;Usualy customers are the ones that work with the backend. As they do not know much about css or browser bugs they should not interact with css.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Appending .px to template variable &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/279407?start=0#post280424&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/279407?start=0#post280424&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 07 Mar 2010 20:19:37 +1300</pubDate>
			<dc:creator>baba-papa</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/279407?start=0#post280424</guid>
		</item>
		
		<item>
			<title>Re: Appending .px to template variable</title>
			<link>http://www.silverstripe.org/template-questions/show/279407?start=0#post280386</link>
			<description>&lt;p&gt;hi&lt;/p&gt;&lt;p&gt;i guess the issue is solved with {$x}px.&lt;/p&gt;&lt;p&gt;but baba-papa ok there are pros &amp;amp; contras for controlling styles trough the cms - what is best practice if you do? would you make inline styles in the template? how do you actually use $vars in the css files?&lt;/p&gt;&lt;p&gt;luk&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Appending .px to template variable &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/279407?start=0#post280386&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/279407?start=0#post280386&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 07 Mar 2010 07:02:32 +1300</pubDate>
			<dc:creator>lerni</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/279407?start=0#post280386</guid>
		</item>
		
		<item>
			<title>Re: Help, my site is broken!</title>
			<link>http://www.silverstripe.org/template-questions/show/279970?start=0#post280384</link>
			<description>&lt;p&gt;It's clearly a templating issue. Your duplicating your global template file as we can see &amp;lt;html&amp;gt; opening tags twice.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Help, my site is broken! &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/279970?start=0#post280384&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/279970?start=0#post280384&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 07 Mar 2010 05:21:25 +1300</pubDate>
			<dc:creator>Pigeon</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/279970?start=0#post280384</guid>
		</item>
		
		<item>
			<title>Re: Appending .px to template variable</title>
			<link>http://www.silverstripe.org/template-questions/show/279407?start=0#post280383</link>
			<description>&lt;p&gt;&amp;lt;div id=&quot;FlashContainer&quot; style=&quot;margin:{$TopMargin}px 0 0 {$LeftMargin}px&quot;&amp;gt;&lt;/p&gt;&lt;p&gt;Don´t let anyone change CSS via the backend, this will blow up in your face sooner or later.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Appending .px to template variable &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/279407?start=0#post280383&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/279407?start=0#post280383&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 07 Mar 2010 05:12:07 +1300</pubDate>
			<dc:creator>baba-papa</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/279407?start=0#post280383</guid>
		</item>
		
		<item>
			<title>Re: Passing Variables from Template to Class?</title>
			<link>http://www.silverstripe.org/template-questions/show/280146?start=0#post280382</link>
			<description>&lt;p&gt;There is an excellent ducumentation on how to implement pagination:&lt;br /&gt;&lt;a href=&quot;http://doc.silverstripe.org/doku.php?id=private:recipes:pagination&quot;&gt;http://doc.silverstripe.org/doku.php?id=private:recipes:pagination&lt;/a&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Passing Variables from Template to Class? &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/280146?start=0#post280382&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/280146?start=0#post280382&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 07 Mar 2010 05:09:51 +1300</pubDate>
			<dc:creator>baba-papa</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/280146?start=0#post280382</guid>
		</item>
		

	</channel>
</rss>