<?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>Repeating HTML structure for different includes</title>
			<link>http://www.silverstripe.org/template-questions/show/19933</link>
			<description>&lt;p&gt;hello,&lt;/p&gt;&lt;p&gt;i'm a frontend designer with small programming knowledge and have the following question:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;aside&amp;gt;&lt;br /&gt;..&lt;br /&gt;..   &lt;br /&gt; &amp;lt;% if getFeaturedCount %&amp;gt;                         &lt;br /&gt;      &amp;lt;div class=&quot;block&quot;&amp;gt;&lt;br /&gt;        &amp;lt;div class=&quot;header&quot;&amp;gt;&lt;br /&gt;          &amp;lt;h2&amp;gt;Project Featured&amp;lt;/h2&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;div class=&quot;content&quot;&amp;gt;   &lt;br /&gt;          &amp;lt;div class=&quot;list&quot;&amp;gt;                      &lt;br /&gt;            &amp;lt;% control getProjectFeatured %&amp;gt;&lt;br /&gt;              &amp;lt;div class=&quot;item&quot;&amp;gt;&lt;br /&gt;                &amp;lt;ul&amp;gt;&lt;br /&gt;                  &amp;lt;li&amp;gt;&amp;lt;a href=&quot;$Link&quot;&amp;gt;$title&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;                                           &lt;br /&gt;                  &amp;lt;li&amp;gt;$shorttitle&amp;lt;/li&amp;gt;&lt;br /&gt;                  &amp;lt;li&amp;gt;$year&amp;lt;/li&amp;gt;                            &lt;br /&gt;                &amp;lt;/ul&amp;gt;        &lt;br /&gt;              &amp;lt;/div&amp;gt;                                &lt;br /&gt;            &amp;lt;% end_control %&amp;gt;  &lt;br /&gt;          &amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;                        &lt;br /&gt;      &amp;lt;/div&amp;gt;                        &lt;br /&gt;    &amp;lt;% end_if %&amp;gt;   &lt;br /&gt;    &amp;lt;% if getLabCount %&amp;gt;                         &lt;br /&gt;      &amp;lt;div class=&quot;block&quot;&amp;gt;&lt;br /&gt;        &amp;lt;div class=&quot;header&quot;&amp;gt;&lt;br /&gt;          &amp;lt;h2&amp;gt;Labs&amp;lt;/h2&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;div class=&quot;content&quot;&amp;gt;   &lt;br /&gt;          &amp;lt;div class=&quot;list&quot;&amp;gt;                      &lt;br /&gt;            &amp;lt;% control getLabList %&amp;gt;&lt;br /&gt;              &amp;lt;div class=&quot;item&quot;&amp;gt;&lt;br /&gt;                &amp;lt;ul&amp;gt;&lt;br /&gt;                    &amp;lt;li&amp;gt;&amp;lt;a href=&quot;$Link&quot;&amp;gt;$name&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;                                           &lt;br /&gt;                    &amp;lt;li&amp;gt;$subtitle&amp;lt;/li&amp;gt;&lt;br /&gt;                    &amp;lt;li&amp;gt;$Logo&amp;lt;/li&amp;gt;                            &lt;br /&gt;                &amp;lt;/ul&amp;gt;  &lt;br /&gt;              &amp;lt;/div&amp;gt;                &lt;br /&gt;            &amp;lt;% end_control %&amp;gt;&lt;br /&gt;          &amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;                        &lt;br /&gt;      &amp;lt;/div&amp;gt;                        &lt;br /&gt;    &amp;lt;% end_if %&amp;gt;&lt;br /&gt;..&lt;br /&gt;..&lt;br /&gt;&amp;lt;/aside&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;i have structures like above (typical sidebar blocks) and as you can see i have to print the output of different models (datatypes) in the always same html structure&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;div class=&quot;block&quot;&amp;gt;&lt;br /&gt;        &amp;lt;div class=&quot;header&quot;&amp;gt;&lt;/p&gt;&lt;p&gt;TITLE&lt;/p&gt;&lt;p&gt;        &amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;div class=&quot;content&quot;&amp;gt;   &lt;/p&gt;&lt;p&gt;ITEMS&lt;/p&gt;&lt;p&gt;        &amp;lt;/div&amp;gt;                        &lt;br /&gt;      &amp;lt;/div&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;in smarty for example i would include another template for each block and give parameters with it (TITLE, ITEMS) and &lt;br /&gt;would end with the following:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;aside&amp;gt;&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;{include myblock.html&lt;br /&gt;         title=&quot;Project Featured&quot;,&lt;br /&gt;         items=$getProjectFeatured()}&lt;/p&gt;&lt;p&gt;{include myblock.html&lt;br /&gt;         title=&quot;Labs&quot;,&lt;br /&gt;         items=$getLabList()}&lt;/p&gt;&lt;p&gt;...&lt;br /&gt;...&lt;br /&gt;&amp;lt;/aside&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;how to do this in silverstripe?&lt;/p&gt;&lt;p&gt;thanks and best regards sb&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Repeating HTML structure for different includes | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19933&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19933&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 25 May 2012 02:05:18 +1200</pubDate>
			<dc:creator>sb</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19933</guid>
		</item>
		
		<item>
			<title>Re: [SOLVED] Email template (Just forgot about flush)</title>
			<link>http://www.silverstripe.org/template-questions/show/14126#post314082</link>
			<description>&lt;p&gt;i have to put the email template to &lt;/p&gt;&lt;p&gt;themes/mytheme/templates/Email/myemailtemplate.ss &lt;/p&gt;&lt;p&gt;to work. Aram also confirmed this: &lt;a href=&quot;http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/&quot; rel=&quot;nofollow&quot;&gt;http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [SOLVED] Email template (Just forgot about flush) | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/14126#post314082&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/14126&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 22 May 2012 02:23:42 +1200</pubDate>
			<dc:creator>BenWu</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/14126#post314082</guid>
		</item>
		
		<item>
			<title>Re: Problems with PrettyPhoto using inline option for links</title>
			<link>http://www.silverstripe.org/template-questions/show/14902#post314035</link>
			<description>&lt;p&gt;Same issue here...&lt;/p&gt;&lt;p&gt;All I can see that is different in terms of the elements is a forward slash inserted before the ID reference, so instead of anchor reading href=&quot;#inline-1&quot; it is href=&quot;/#inline-1&quot; as rendered by silverstripe.&lt;/p&gt;&lt;p&gt;Not sure if this is causing the error with prettyPhoto, or how to turn that forward slash off?&lt;/p&gt;&lt;p&gt;Would appreciate a solution also.&lt;/p&gt;&lt;p&gt;Best wishes&lt;br /&gt;~ Sean&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problems with PrettyPhoto using inline option for links | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/14902#post314035&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/14902&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 19 May 2012 04:37:47 +1200</pubDate>
			<dc:creator>ocean</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/14902#post314035</guid>
		</item>
		
		<item>
			<title>Re: Templating hierarchy</title>
			<link>http://www.silverstripe.org/template-questions/show/19781#post313971</link>
			<description>&lt;p&gt;Couldn't you just create the pages in the CMS and add the content in there? &lt;br /&gt;Wouldn't this be simpler than creating a different template for each?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Templating hierarchy | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19781#post313971&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19781&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 15 May 2012 18:02:03 +1200</pubDate>
			<dc:creator>ampedup</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19781#post313971</guid>
		</item>
		
		<item>
			<title>Re: Make children collapse</title>
			<link>http://www.silverstripe.org/template-questions/show/19825#post313803</link>
			<description>&lt;p&gt;What you want is to check if the current page is the page or a descendant of the menu item using LinkOrSection:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% control Menu(1) %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// ul - li etc //&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% if LinkOrSection = section %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control Children %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// ul - li etc //&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://doc.silverstripe.org/sapphire/en/reference/built-in-page-controls#and-lt-if-linkorsection-section-and-gt&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/sapphire/en/reference/built-in-page-controls#and-lt-if-linkorsection-section-and-gt&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Make children collapse | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19825#post313803&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19825&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 07 May 2012 18:30:49 +1200</pubDate>
			<dc:creator>ampedup</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19825#post313803</guid>
		</item>
		
		<item>
			<title>Make children collapse</title>
			<link>http://www.silverstripe.org/template-questions/show/19825</link>
			<description>&lt;p&gt;Hi! I am all new to SilverStripe. I am learning SilverStripe because I really like the CMS. I am starting my own company and I want my site to be SS based. I really can use your help. If if have something like this:&lt;/p&gt;&lt;p&gt;&amp;lt;% control Menu(1) %&amp;gt;&lt;br /&gt;     // ul - li etc //&lt;br /&gt;          &amp;lt;% control Children %&amp;gt;&lt;br /&gt;               // ul - li etc //&lt;br /&gt;          &amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;p&gt;The children just won't disappear. They are visible no matter what parent item is active. Now I can use jQuery or some PHP to make them successfully disappear, but I rather have SilverStripe to do so. I don't actually need this for my own site, but I just want to learn SS the best way possible, so that my own site will be as clean and fast as possible. Thank you so much!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Make children collapse | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19825&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19825&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 05 May 2012 00:52:10 +1200</pubDate>
			<dc:creator>R6T9</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19825</guid>
		</item>
		
		<item>
			<title>Templating hierarchy</title>
			<link>http://www.silverstripe.org/template-questions/show/19781</link>
			<description>&lt;p&gt;I'm quite surprised that this hasn't yet been thoroughly addressed, as it's something that I ran into fairly quickly.&lt;/p&gt;&lt;p&gt;My site structure looks something like this:&lt;/p&gt;&lt;p&gt;Site -&amp;gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Home&lt;br /&gt;    &lt;/li&gt;&lt;li&gt;Company -&amp;gt;&lt;br /&gt;    &lt;ul&gt;&lt;li&gt;Vision&lt;br /&gt;        &lt;/li&gt;&lt;li&gt;Team&lt;br /&gt;        &lt;/li&gt;&lt;li&gt;...&lt;br /&gt;        &lt;/li&gt;&lt;li&gt;...&lt;br /&gt;    &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;    &lt;/li&gt;&lt;li&gt;Portfolio -&amp;gt;&lt;br /&gt;    &lt;ul&gt;&lt;li&gt;...&lt;br /&gt;        &lt;/li&gt;&lt;li&gt;...&lt;br /&gt;    &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/p&gt;&lt;p&gt;And so on. It's a three-level hierarchy. All of the subpages are very simple, and don't need their own controller logic. They're simply template content that wouldn't do well with being in the CMS.&lt;/p&gt;&lt;p&gt;I would like to have these subpage templates in a subdirectory of Layout, and rendered automatically within their parent pagetype template. I cannot figure out how to extend the template selection of SiteTree to do this.&lt;/p&gt;&lt;p&gt;Any ideas?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Templating hierarchy | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19781&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19781&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 01 May 2012 04:41:14 +1200</pubDate>
			<dc:creator>FrozenFire</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19781</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695?start=16#post313616</link>
			<description>&lt;p&gt;To debug I use &lt;a href=&quot;http://www.netbeans.org/downloads/index.html&quot; rel=&quot;nofollow&quot;&gt;http://www.netbeans.org/downloads/index.html&lt;/a&gt;&lt;br /&gt;It is really straight forward to install and then when you start a debug session you'll need xdebug installed - this helps do that - &lt;a href=&quot;http://xdebug.org/wizard.php&quot; rel=&quot;nofollow&quot;&gt;http://xdebug.org/wizard.php&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695?start=16#post313616&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 01 May 2012 04:27:13 +1200</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695?start=16#post313616</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695?start=8#post313615</link>
			<description>&lt;p&gt;Hey swaiba,&lt;/p&gt;&lt;p&gt;I've done this:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if peekNext %&amp;gt;hello world&lt;br /&gt;&amp;lt;% control peekNext %&amp;gt;test $someotherfield $ID $Name&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;and it doesn't enter the control structures as it doesn't display the word 'test'.&lt;/p&gt;&lt;p&gt;Here is the actual code i am using on my template:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;div class=&quot;MotorHomeWidget&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div class=&quot;nav_holder&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;ul id=&quot;MotorHomeWidget&quot; class=&quot;jcarousel-skin-viewrange&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control ViewOurRange %&amp;gt;&amp;lt;li class=&quot;$EvenOdd&amp;lt;% if First %&amp;gt; first&amp;lt;% end_if %&amp;gt;&amp;lt;% if Last %&amp;gt; last&amp;lt;% end_if %&amp;gt;&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;lt;div class=&quot;ViewRangeTitle&quot;&amp;gt;&amp;lt;a href=&quot;$Link&quot;&amp;gt;$Title&amp;lt;/a&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;lt;p&amp;gt;$Description.LimitCharacters(80)&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;lt;a href=&quot;$Link&quot;&amp;gt;$Image.CroppedImage(200,150)&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 peekNext %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;test if statement&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control peekNext %&amp;gt;test $Title $ID&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;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/li&amp;gt;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/ul&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;The data the above template is pulling is from a dataobject if that helps.&lt;/p&gt;&lt;p&gt;Also i'm not entirely sure how to:&lt;br /&gt;&quot;open a debugger and stick a breakpoint on the peekNext function&quot;&lt;/p&gt;&lt;p&gt;Some pointing in the right direction on that would also be helpful.&lt;/p&gt;&lt;p&gt;Thanks again.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695?start=8#post313615&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 01 May 2012 04:13:32 +1200</pubDate>
			<dc:creator>Blackthorn87</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695?start=8#post313615</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695?start=8#post313611</link>
			<description>&lt;p&gt;Thanks swaiba,&lt;/p&gt;&lt;p&gt;I'll have another go see what happens, posting it on here afterwards.&lt;/p&gt;&lt;p&gt;Watch this space.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695?start=8#post313611&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 30 Apr 2012 21:02:36 +1200</pubDate>
			<dc:creator>Blackthorn87</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695?start=8#post313611</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695?start=8#post313610</link>
			<description>&lt;p&gt;Blackthorn87,&lt;/p&gt;&lt;p&gt;Firstly rather than saying &quot;That hasn't wielded any results either&quot; you might have indicated whether you could see the word &quot;test&quot; at all - that indicated whether you are going into the contorl structures.  Second you could open a debugger and stick a breakpoint on the peekNext function to see what is happending.  Third you could post a simple example that completely encapsulates/reproduces the problem because there is so *no* &quot;other stuff&quot; that could be affecting this from working - often the problem is not where you think it is.&lt;/p&gt;&lt;p&gt;And if you are after &quot;Admins&quot; then your only reliable hope is to get on IRC when the core devs are present which they are for one hour a week - or to post on the core dev list (but that is more for development decisions rather than support).  I don't see silverstripe employees posting on here at all often.&lt;/p&gt;&lt;p&gt;Best of luck!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695?start=8#post313610&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 30 Apr 2012 20:55:46 +1200</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695?start=8#post313610</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695?start=8#post313609</link>
			<description>&lt;p&gt;Sorry guys, I'm bumping this again.&lt;/p&gt;&lt;p&gt;It would be great if someone could lend a bit of time to solve this, maybe an admin?&lt;/p&gt;&lt;p&gt;Thanks in advance!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695?start=8#post313609&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 30 Apr 2012 20:37:19 +1200</pubDate>
			<dc:creator>Blackthorn87</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695?start=8#post313609</guid>
		</item>
		
		<item>
			<title>Re: two or more IDs on &lt;% control ChildrenOf(right_here) ??</title>
			<link>http://www.silverstripe.org/template-questions/show/19733#post313573</link>
			<description>&lt;p&gt;You'd need to do &amp;lt;% control ChildrenOf(&quot;Projects&quot;) %&amp;gt; &amp;lt;% control Children %&amp;gt; Your COde &amp;lt;% end_control %&amp;gt;&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;p&gt;Remember once you're in a control loop any method available to that control are exposed. So once you're in ChildrenOf(&quot;Projects&quot;) anything available on Project is available to you&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: two or more IDs on &amp;lt;% control ChildrenOf(right_here) ?? | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19733#post313573&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19733&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 28 Apr 2012 02:56:38 +1200</pubDate>
			<dc:creator>zenmonkey</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19733#post313573</guid>
		</item>
		
		<item>
			<title>Re: Limit &lt;% control %&gt; items</title>
			<link>http://www.silverstripe.org/template-questions/show/19747#post313521</link>
			<description>&lt;p&gt;In your function &quot;newsimage&quot;e you need to limit your for loop. &lt;br /&gt;At your function passing upper limit number.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Limit &amp;lt;% control %&amp;gt; items | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19747#post313521&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19747&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 24 Apr 2012 22:52:43 +1200</pubDate>
			<dc:creator>biapar</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19747#post313521</guid>
		</item>
		
		<item>
			<title>Limit &lt;% control %&gt; items</title>
			<link>http://www.silverstripe.org/template-questions/show/19747</link>
			<description>&lt;p&gt;Hey&lt;/p&gt;&lt;p&gt;How can I limit control-items in my .ss template, in my case an image-gallery-images (for example, limit to 2 items)?&lt;br /&gt;I tried following without result:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% control NewsImages(2) %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$Attachment.croppedImage(100,100)&lt;br /&gt;&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Limit &amp;lt;% control %&amp;gt; items | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19747&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19747&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 24 Apr 2012 22:10:14 +1200</pubDate>
			<dc:creator>carlo</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19747</guid>
		</item>
		
		<item>
			<title>two or more IDs on &lt;% control ChildrenOf(right_here) ??</title>
			<link>http://www.silverstripe.org/template-questions/show/19733</link>
			<description>&lt;p&gt;Hi, I'm new on SilverStripe, and I want to use it on my portfolio, I'm a webdesigner&lt;br /&gt;I have this structure:&lt;/p&gt;&lt;p&gt;-Home&lt;br /&gt;-Contact&lt;br /&gt;-Projects&lt;br /&gt;--Identity&lt;br /&gt;---1&lt;br /&gt;---2&lt;br /&gt;---3&lt;br /&gt;--Packaging&lt;br /&gt;---a&lt;br /&gt;---b&lt;br /&gt;---c&lt;br /&gt;--Wayfinding&lt;br /&gt;---i&lt;br /&gt;---ii&lt;br /&gt;---iii&lt;br /&gt;I'm using a custom subtemplate for HOME and I want it to display a grid or table with all the projects I have done:&lt;/p&gt;&lt;p&gt;PROJECTS&lt;br /&gt;1  2  3 a b&lt;br /&gt;c i ii iii&lt;/p&gt;&lt;p&gt;is there a page control to get all the grandchildren from &quot;Projects&quot;, I've read &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; but I couldn't find anything, also I want them to apear in random order, that's why I'm looking for one instruction instead of writing:&lt;/p&gt;&lt;p&gt;&amp;lt;% control ChildrenOf(__________)%&amp;gt;&lt;/p&gt;&lt;p&gt;for every grandchildren in order to achieve it&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;and sorry for my really lame english =/&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: two or more IDs on &amp;lt;% control ChildrenOf(right_here) ?? | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19733&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19733&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sun, 22 Apr 2012 07:55:02 +1200</pubDate>
			<dc:creator>arthgwyr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19733</guid>
		</item>
		
		<item>
			<title>Re: Requirements::javascript can&#39;t load my js file</title>
			<link>http://www.silverstripe.org/template-questions/show/5835#post313461</link>
			<description>&lt;p&gt;i have placed my .js file in  mysite/code/page.php ...  like&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;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;      &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Requirements::javascript(&quot;themes/my-theme/js/jquery.js&quot;); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Requirements::javascript(&quot;themes/my-theme/js/cufon-yui.js&quot;); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Requirements::javascript(&quot;themes/my-theme/js/Avenir_Next_LT_Pro_500.font.js&quot;); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Requirements::javascript(&quot;themes/my-theme/js/Avenir_Next_LT_Pro_600.font.js&quot;); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Requirements::javascript(&quot;themes/my-theme/js/Adelle_Rg_italic_400.font.js&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;for now i need to Write some code  like&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;js/Avenir_Next_LT_Pro_500.font.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Cufon.replace('.block1-title');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Cufon.replace('.news-title');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/script&amp;gt;&lt;/p&gt;&lt;p&gt;how can i write code linke this... in siverstripe&lt;/p&gt;&lt;p&gt;plz any one help !!!&lt;/p&gt;&lt;p&gt;Thanks in advance&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Requirements::javascript can&amp;#39;t load my js file | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/5835#post313461&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/5835&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 21 Apr 2012 21:42:47 +1200</pubDate>
			<dc:creator>Markiv</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/5835#post313461</guid>
		</item>
		
		<item>
			<title>Re: include a custom javascript file</title>
			<link>http://www.silverstripe.org/template-questions/show/4959#post313456</link>
			<description>&lt;p&gt;how to  include cufon for site.Where i have to place my cufon.js file ..???.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: include a custom javascript file | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/4959#post313456&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/4959&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 21 Apr 2012 18:44:18 +1200</pubDate>
			<dc:creator>Markiv</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/4959#post313456</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695?start=8#post313449</link>
			<description>&lt;p&gt;Does anyone have any ideas about this problem?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695?start=8#post313449&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 21 Apr 2012 02:25:29 +1200</pubDate>
			<dc:creator>Blackthorn87</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695?start=8#post313449</guid>
		</item>
		
		<item>
			<title>Re: External link from the template</title>
			<link>http://www.silverstripe.org/template-questions/show/19273#post313419</link>
			<description>&lt;p&gt;Hehehe, it is done! Problem solved&lt;/p&gt;&lt;p&gt;Thnx again!!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: External link from the template | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19273#post313419&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19273&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 20 Apr 2012 00:53:40 +1200</pubDate>
			<dc:creator>Bolixe</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19273#post313419</guid>
		</item>
		
		<item>
			<title>Re: External link from the template</title>
			<link>http://www.silverstripe.org/template-questions/show/19273#post313418</link>
			<description>&lt;p&gt;Hi mishell, &lt;/p&gt;&lt;p&gt;sorry I had left this project for a moment to focus on anothers. I forgot totally about my post.&lt;/p&gt;&lt;p&gt;I am trying your solution, but it doesn´t work, the issue I think is different, how SS handle the template and treats the &amp;lt;a href&amp;gt; tags.  Because the $ExternalLink is showing right if I place it in h2 for example. &lt;/p&gt;&lt;p&gt;I mean if I even use static word for example:&lt;/p&gt;&lt;p&gt;&amp;lt;a  href=&quot;Hellloworld&quot; rel=&quot;external&quot;&amp;gt;linkName&amp;lt;/a&amp;gt;&lt;/p&gt;&lt;p&gt;SS is adding the baseUrl before Helloworld when build the template, so the final:&lt;/p&gt;&lt;p&gt;href --&amp;gt; 'http//www.baseurl.com/dataObject/Helloworld'&lt;/p&gt;&lt;p&gt;What I want to get is href --&amp;gt; 'Helloworld' only to then I build my link on my own. &lt;/p&gt;&lt;p&gt;Thanks for your reply, bye&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: External link from the template | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19273#post313418&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19273&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 20 Apr 2012 00:20:50 +1200</pubDate>
			<dc:creator>Bolixe</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19273#post313418</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695?start=8#post313352</link>
			<description>&lt;p&gt;Sorry mate,&lt;/p&gt;&lt;p&gt;That hasn't wielded any results either. But to be honest, I'm entirely sure how to use the peekNext function, can you actually use it in the template, or do I have to use it in the controller/function?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695?start=8#post313352&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 03:41:23 +1200</pubDate>
			<dc:creator>Blackthorn87</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695?start=8#post313352</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695?start=8#post313351</link>
			<description>&lt;p&gt;ok, 1) forget &quot;Iterator.peekNext&quot;&lt;/p&gt;&lt;p&gt;2) ok it does nothing... how about this...&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if peekNext %&amp;gt;hello world&lt;br /&gt;&amp;lt;% control peekNext %&amp;gt;test $someotherfield $ID $Name&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695?start=8#post313351&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 02:54:33 +1200</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695?start=8#post313351</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695?start=8#post313350</link>
			<description>&lt;p&gt;Sorry mate, the result of the above code is nothing.&lt;/p&gt;&lt;p&gt;When I use&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% control peekNext %&amp;gt;$productName&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I get nothing, no errors, no text, etc.&lt;/p&gt;&lt;p&gt;When I use&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if Iterator.peekNext %&amp;gt;$productName&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I get &lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:red&quot;&gt;Fatal error: Call to undefined method ArrayIterator::hasValue() in C:\Users\DESKTOP1\AppData\Local\Temp\silverstripe-cacheC--xampp-htdocs-dev_DOM\.cache.module_motorhomes.templates.ProductWidget.ss on line 51&lt;/span&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695?start=8#post313350&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 02:40:56 +1200</pubDate>
			<dc:creator>Blackthorn87</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695?start=8#post313350</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695#post313349</link>
			<description>&lt;p&gt;I get what you are saying - I'm obviously not being clear enough myself.... what is the code when you execute outputing... is it blank? is it erroring?  what is exactly is the result of the code?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695#post313349&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 02:32:41 +1200</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695#post313349</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695#post313348</link>
			<description>&lt;p&gt;I'm the process of creating a module and widget set. It creates a dataobject tied to a page type; the data object being a motor home and the page type being a motor home category.&lt;/p&gt;&lt;p&gt;The peekNext part is part of the widget. It is supposed to display all the motor homes regardless of their category page, which it does. But also on each motor home entry i would like it to display the one that is going to appear next.&lt;/p&gt;&lt;p&gt;If you get what I'm trying to explain.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695#post313348&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 02:27:44 +1200</pubDate>
			<dc:creator>Blackthorn87</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695#post313348</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695#post313347</link>
			<description>&lt;p&gt;yeah i get that bit, I searched the code and it is reight there is DataObjectSet - I meant what does the above template you are using actually do&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695#post313347&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 02:08:21 +1200</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695#post313347</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695#post313346</link>
			<description>&lt;p&gt;From what I understand it's supposed to allow you pull data from the next data object. At least that is the outcome I would like to achieve.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695#post313346&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 01:58:11 +1200</pubDate>
			<dc:creator>Blackthorn87</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695#post313346</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695#post313345</link>
			<description>&lt;p&gt;yeah my bad - it should work as you have... what does it actually do?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695#post313345&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 01:14:10 +1200</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695#post313345</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695#post313344</link>
			<description>&lt;p&gt;Hey swaiba,&lt;/p&gt;&lt;p&gt;I tried what you suggested but it failed on me and caused an error.&lt;/p&gt;&lt;p&gt;I swapped out the&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% control peekNext %&amp;gt;$productName&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;for this&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if Iterator.peekNext %&amp;gt;$productName&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;but to no avail. Just got an error.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695#post313344&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 01:10:11 +1200</pubDate>
			<dc:creator>Blackthorn87</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695#post313344</guid>
		</item>
		
		<item>
			<title>Re: peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695#post313343</link>
			<description>&lt;p&gt;quick google leads me to believe..&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if Iterator.peekNext %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;instead of &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if peekNext %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;and I'd also advise nivo slider over jcarosel anyday of the week (including today)&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695#post313343&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 01:02:32 +1200</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695#post313343</guid>
		</item>
		
		<item>
			<title>peekNext</title>
			<link>http://www.silverstripe.org/template-questions/show/19695</link>
			<description>&lt;p&gt;Hey Guys,&lt;/p&gt;&lt;p&gt;I've been struggling with this situation for a few hours and have read everything I could find online.&lt;/p&gt;&lt;p&gt;What I'm doing is displaying Information from a DataObject to create a carousel (using jCarousel). The part I'm struggling with is displaying a bit of information from the next Item, the name, so basically it says next item is called 'item name'.&lt;/p&gt;&lt;p&gt;I looked on the web for a solution and found something called 'peekNext'. I tried to implement this in the template like so:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% control Products %&amp;gt;&lt;/p&gt;&lt;p&gt;$productName&lt;br /&gt;$productImage&lt;/p&gt;&lt;p&gt;&amp;lt;% control peekNext %&amp;gt;$productName&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;But I've had no luck.&lt;/p&gt;&lt;p&gt;Any Help?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: peekNext | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19695&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19695&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 16 Apr 2012 23:21:16 +1200</pubDate>
			<dc:creator>Blackthorn87</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19695</guid>
		</item>
		
		<item>
			<title>Re: jQuery problem when using renderWith()</title>
			<link>http://www.silverstripe.org/template-questions/show/19667#post313293</link>
			<description>&lt;p&gt;&lt;em&gt;I have noticed that the actual markup for the HTML rendered with renderWith() i.e. the markup in GridView.ss isnt visible when viewing the page source in Firefox. Why is that? And, is that the origin of this problem&lt;/em&gt;&lt;/p&gt;&lt;p&gt;View source doesn't show AJAX html. You have to use the console panel for that. Note that if you insert something into a page via AJAX you don't automatically get all the event handlers. This forms the basis of the delegate() / .on() and .live() functionality in jQuery. I suggest reading up on those.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://api.jquery.com/live/&quot; rel=&quot;nofollow&quot;&gt;http://api.jquery.com/live/&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://api.jquery.com/on/&quot; rel=&quot;nofollow&quot;&gt;http://api.jquery.com/on/&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: jQuery problem when using renderWith() | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19667#post313293&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19667&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 13 Apr 2012 19:19:07 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19667#post313293</guid>
		</item>
		
		<item>
			<title>Re: &lt;filename&gt;.ss does not work</title>
			<link>http://www.silverstripe.org/template-questions/show/19673#post313274</link>
			<description>&lt;p&gt;You say that the page type is Order but your template is called OrderPage. Make sure that the names are all aligned as this is how Silverstripe automagically selects the correct template. &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;br /&gt;class OrderPage extends Page {&lt;/p&gt;&lt;p&gt;}&lt;br /&gt;class OrderPage_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;In the CMS make sure that in the Behavior tab you have set the page to be an OrderPage.&lt;/p&gt;&lt;p&gt;Also, it looks like your template is not a full HTML document but is a fragment. In this case you want to store it in templates/Layout/ and insert $Layout into your main template to insert your Order Page layout at that point (rather than $Content).&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: &amp;lt;filename&amp;gt;.ss does not work | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19673#post313274&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19673&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 13 Apr 2012 07:58:11 +1200</pubDate>
			<dc:creator>Tim Snadden</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19673#post313274</guid>
		</item>
		
		<item>
			<title>&lt;filename&gt;.ss does not work</title>
			<link>http://www.silverstripe.org/template-questions/show/19673</link>
			<description>&lt;p&gt;Hello, im quite new to SilverStripe,&lt;/p&gt;&lt;p&gt;I've got a Order page on the website and in the CMS i've got a page with the page type Order.&lt;br /&gt;Now i want to edit the Order page, so i made OrderPage.ss to make the layout right.&lt;/p&gt;&lt;p&gt;&amp;lt;div id=&quot;page&quot;&amp;gt;&lt;br /&gt;&amp;lt;div id=&quot;small_logo&quot;&amp;gt;&lt;br /&gt;&amp;lt;img title=&quot;Logo IJzerleeuw&quot; alt=&quot;Logo IJzerleeuw&quot; src=&quot;$ThemeDir/images/ijzerleew_logo_transparant_small.png&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div id=&quot;page_text&quot;&amp;gt;&lt;br /&gt;&amp;lt;h1&amp;gt;$Title&amp;lt;/h1&amp;gt;&lt;br /&gt;$Content&lt;br /&gt;$Form&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;&lt;p&gt;But this page isnt showing anything..&lt;br /&gt;The Page.ss is showing instead of OrderPage.ss&lt;/p&gt;&lt;p&gt;I did dev/build?flush=1 but it isnt working.&lt;/p&gt;&lt;p&gt;Anyone got an idea? Thanks already!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: &amp;lt;filename&amp;gt;.ss does not work | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19673&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19673&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 12 Apr 2012 22:03:26 +1200</pubDate>
			<dc:creator>phokki</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19673</guid>
		</item>
		
		<item>
			<title>Re: scrollbar missing</title>
			<link>http://www.silverstripe.org/template-questions/show/13042#post313254</link>
			<description>&lt;p&gt;I ran into the same issue - the following was a quick fix that I added to my .CSS file within the template.&lt;/p&gt;&lt;p&gt;html {&lt;br /&gt;    overflow-y: scroll;&lt;br /&gt;}&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: scrollbar missing | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/13042#post313254&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/13042&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 12 Apr 2012 12:26:51 +1200</pubDate>
			<dc:creator>BMax</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/13042#post313254</guid>
		</item>
		
		<item>
			<title>Re: jQuery problem when using renderWith()</title>
			<link>http://www.silverstripe.org/template-questions/show/19667#post313239</link>
			<description>&lt;p&gt;This is more of a jQuery issue than an SS I think.&lt;/p&gt;&lt;p&gt;First to you have Firebug with the jQuery plugin installed? It'll ensure you ajax calls a rendered in the source as well as help debug jQuery issues. Second make sure you're using the prevenDefault() on your click function to ensure that the browser going to '#' isn't causing issues.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: jQuery problem when using renderWith() | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19667#post313239&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19667&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 12 Apr 2012 02:04:00 +1200</pubDate>
			<dc:creator>zenmonkey</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19667#post313239</guid>
		</item>
		
		<item>
			<title>jQuery problem when using renderWith()</title>
			<link>http://www.silverstripe.org/template-questions/show/19667</link>
			<description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I have a problem regarding accessing an element id from a jQuery click event when the actual element is part of template rendered with the method renderWith(). I cannot figure out whats wrong and could surely need some wise input.&lt;/p&gt;&lt;p&gt;Here is my code (of interest):&lt;/p&gt;&lt;p&gt;ProductListPage.php&lt;br /&gt;-----------------------&lt;br /&gt;class ProductListPage extends Page {&lt;br /&gt;..&lt;br /&gt;..&lt;br /&gt;}&lt;br /&gt;class ProductListPage_Controller extends Page_Controller {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function init() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parent::init();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Requirements::javascript(&quot;themes/mytheme/javascript/jquery.js&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Requirements::javascript(&quot;themes/mytheme/javascript/script.js&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(Director::is_ajax() || $_GET[&quot;ajaxDebug&quot;]) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;isAjax = 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;$this-&amp;gt;isAjax = 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;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;   &amp;nbsp;&amp;nbsp;&amp;nbsp;public function filter() {&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;..&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;..&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    $myDataObjectSet = singleton('Product')-&amp;gt;buildDataObjectSet($result);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    return $this-&amp;gt;customise(array('Products' =&amp;gt; $myDataObjectSet))-&amp;gt;renderWith(array('GridView'));&lt;/p&gt;&lt;p&gt;    }&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;ProductListPage.ss&lt;br /&gt;-----------------------&lt;br /&gt;...&lt;br /&gt;&amp;lt;div id=&quot;AjaxContainer&quot;&amp;gt;Ajax container&amp;lt;/div&amp;gt;&lt;br /&gt;..&lt;br /&gt;&amp;lt;div&amp;gt;&amp;lt;a href=&quot;#&quot; id=&quot;displayed-ok-in-alert&quot; rel=&quot;ajax&quot;&amp;gt;Working fine&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;..&lt;br /&gt;&amp;lt;div&amp;gt;&amp;lt;a href=&quot;#&quot; id=&quot;not-important&quot; onclick=&quot;jQuery('#AjaxContainer').load('$URLSegment/filter/A/B/'); return false;&quot;&amp;gt;Populate Ajax container&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;..&lt;/p&gt;&lt;p&gt;GridView.ss&lt;br /&gt;-----------------------&lt;br /&gt;..&lt;br /&gt;&amp;lt;div&amp;gt;&amp;lt;a href=&quot;#&quot; id=&quot;not-displayed-in-alert&quot; rel=&quot;ajax&quot;&amp;gt;Not working&amp;lt;/a&amp;gt;&lt;br /&gt;..&lt;/p&gt;&lt;p&gt;script.js&lt;br /&gt;-----------------------&lt;br /&gt;$('a[rel=ajax]').click(function (event) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;alert(event.target.id);&lt;br /&gt;});&lt;/p&gt;&lt;p&gt;Everything works fine and clicking the link 'Working fine' fires off the click event and an alert according to 'displayed-ok-in-alert' is displayed. When clicking the link 'Not working' however, the alert is not fired of at all. How come?&lt;/p&gt;&lt;p&gt;I have noticed that the actual markup for the HTML rendered with renderWith() i.e. the markup in GridView.ss isnt visible when viewing the page source in Firefox. Why is that? And, is that the origin of this problem?&lt;/p&gt;&lt;p&gt;I am running Silverstripe 2.4.7 localy on a WAMP installation.&lt;/p&gt;&lt;p&gt;Thankful for any help or pointers on this topic.&lt;/p&gt;&lt;p&gt;Ciao!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: jQuery problem when using renderWith() | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19667&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19667&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 12 Apr 2012 01:19:54 +1200</pubDate>
			<dc:creator>Woos</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19667</guid>
		</item>
		
		<item>
			<title>Re: Formatting decimal and money values?? Possible duplicate</title>
			<link>http://www.silverstripe.org/template-questions/show/19652#post313207</link>
			<description>&lt;p&gt;Well php has a money_format() function which is kind of fun. But at the most basic level you can just do a str_replace() on the price like &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function NicePrice() {&lt;br /&gt;  $offset = strpos($this-&amp;gt;Price, '.00'); //checks to see if .00 exists in Prices&lt;br /&gt;  if ($offset === false) {&lt;br /&gt;    return str_replace('.00', '', $this-&amp;gt;Price); //if .00 exists it replaces it with nothing&lt;br /&gt;  } else {&lt;br /&gt;    return $this-&amp;gt;Price; //if it doesn't exist it just returns the original value&lt;br /&gt;  }&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;Then all you need to do is call $NicePrice in your template&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Formatting decimal and money values?? Possible duplicate | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19652#post313207&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19652&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 11 Apr 2012 06:10:54 +1200</pubDate>
			<dc:creator>zenmonkey</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19652#post313207</guid>
		</item>
		
		<item>
			<title>Re: Virtual Page looses functionality of original page</title>
			<link>http://www.silverstripe.org/template-questions/show/19111#post313200</link>
			<description>&lt;p&gt;Hi Florian&lt;/p&gt;&lt;p&gt;What is VirtualPage for?  I have never found a use for it, but maybe I just don't understand its purpose.&lt;/p&gt;&lt;p&gt;Why would you want two identical pages on a website?  Sometimes I have used RedirectorPage when a page needs to appear on 2 different menus (e.g. because it's not clear to visitors where it belongs), but I'd always want it to have one master URL and one 'alias' that gets redirected.  The only practical difference with VirtualPage I can see is that the URL of the copy stays in the browser address bar.  In what situation would you want that?&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;Jules&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Virtual Page looses functionality of original page | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19111#post313200&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;&lt;/p&gt;
</description>
			<pubDate>Wed, 11 Apr 2012 02:47:10 +1200</pubDate>
			<dc:creator>inCharge</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19111#post313200</guid>
		</item>
		
		<item>
			<title>Formatting decimal and money values?? Possible duplicate</title>
			<link>http://www.silverstripe.org/template-questions/show/19652</link>
			<description>&lt;p&gt;I am kinda new to SS.&lt;/p&gt;&lt;p&gt;In my model I have Price as Decimal. In the template views, i can display the Price which is OK.&lt;/p&gt;&lt;p&gt;But I intend to format the Prices as below&lt;br /&gt;  20.00  should return 20&lt;br /&gt;  25.99 should return 25.99&lt;/p&gt;&lt;p&gt;What is the best approach of getting this done in SS?? &lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;p&gt;Nadz&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Formatting decimal and money values?? Possible duplicate | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19652&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19652&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 10 Apr 2012 17:24:29 +1200</pubDate>
			<dc:creator>Nadz</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19652</guid>
		</item>
		
		<item>
			<title>Re: PHP include producing strange result</title>
			<link>http://www.silverstripe.org/template-questions/show/19645#post313165</link>
			<description>&lt;p&gt;Haha beat me to it! I realised pretty much as soon as I'd posted. Doh!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: PHP include producing strange result | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19645#post313165&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19645&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 09 Apr 2012 21:15:10 +1200</pubDate>
			<dc:creator>Quasso</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19645#post313165</guid>
		</item>
		
		<item>
			<title>Re: PHP include producing strange result</title>
			<link>http://www.silverstripe.org/template-questions/show/19645#post313164</link>
			<description>&lt;p&gt;Make sure that function is inside the Page_Controller or Page class (inside the { } parts).&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: PHP include producing strange result | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19645#post313164&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19645&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 09 Apr 2012 21:10:28 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19645#post313164</guid>
		</item>
		
		<item>
			<title>Re: PHP include producing strange result</title>
			<link>http://www.silverstripe.org/template-questions/show/19645#post313163</link>
			<description>&lt;p&gt;Yeah I've been going into overdrive with SS lately. I used to design stuff and code in PHP/HTML quite proficiently and it's not taken me very long to get to grips with most of this, which is a testament to the system!&lt;/p&gt;&lt;p&gt;Thanks for the quick replies.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: PHP include producing strange result | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19645#post313163&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19645&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 09 Apr 2012 21:07:39 +1200</pubDate>
			<dc:creator>Quasso</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19645#post313163</guid>
		</item>
		
		<item>
			<title>Re: PHP include producing strange result</title>
			<link>http://www.silverstripe.org/template-questions/show/19645#post313162</link>
			<description>&lt;p&gt;Sure! If you haven't already I recommend doing tutorial 2 as that covers creating page types.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: PHP include producing strange result | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19645#post313162&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19645&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 09 Apr 2012 20:55:03 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19645#post313162</guid>
		</item>
		
		<item>
			<title>Re: PHP include producing strange result</title>
			<link>http://www.silverstripe.org/template-questions/show/19645#post313161</link>
			<description>&lt;p&gt;I see, thank you!&lt;/p&gt;&lt;p&gt;This leads me to another question.&lt;/p&gt;&lt;p&gt;Say I make a new page type, say, &quot;Login.ss&quot;.&lt;/p&gt;&lt;p&gt;In the corresponding &quot;Login.php&quot; file may I place a function which in itself performs an include of another PHP script to receive its output?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: PHP include producing strange result | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19645#post313161&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19645&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 09 Apr 2012 20:50:39 +1200</pubDate>
			<dc:creator>Quasso</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19645#post313161</guid>
		</item>
		
		<item>
			<title>Re: PHP include producing strange result</title>
			<link>http://www.silverstripe.org/template-questions/show/19645#post313159</link>
			<description>&lt;p&gt;You cannot embed PHP in SilverStripe templates. You should wrap your PHP in functions and pass the result to the template. For instance..&lt;/p&gt;&lt;p&gt;Page.php&lt;/p&gt;&lt;p&gt;function SayHi() {&lt;br /&gt;return &quot;Hi&quot;;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;Page.ss&lt;/p&gt;&lt;p&gt;$SayHi&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: PHP include producing strange result | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19645#post313159&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19645&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 09 Apr 2012 20:40:41 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19645#post313159</guid>
		</item>
		
		<item>
			<title>PHP include producing strange result</title>
			<link>http://www.silverstripe.org/template-questions/show/19645</link>
			<description>&lt;p&gt;Hi everyone!&lt;/p&gt;&lt;p&gt;At the moment I have a site set up in in SS with:&lt;/p&gt;&lt;p&gt;Page.ss:&lt;/p&gt;&lt;p&gt;&amp;lt;head&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% include Header %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div id=&quot;main_content&quot; class=&quot;container_12&quot;&amp;gt;&lt;/p&gt;&lt;p&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;$Layout&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;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% include Footer %&amp;gt;&lt;/p&gt;&lt;p&gt;etc&lt;/p&gt;&lt;p&gt;And if at any point I, for example, even call &amp;lt;? echo &quot;hi&quot;; ?&amp;gt; from within ANY &amp;lt;div&amp;gt; tags it will wrap another entire body around the rest of the site and the output will appear right at the top with the site's content pushed down by that much.&lt;/p&gt;&lt;p&gt;I gather this is something to do with the page now yet having fulling formed or something but does anyone have a decent explanation and solution to this problem? &lt;/p&gt;&lt;p&gt;Thanks very much!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: PHP include producing strange result | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19645&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19645&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 09 Apr 2012 19:53:08 +1200</pubDate>
			<dc:creator>Quasso</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19645</guid>
		</item>
		
		<item>
			<title>Re: problem with RenderWith() function.</title>
			<link>http://www.silverstripe.org/template-questions/show/19629#post313143</link>
			<description>&lt;p&gt;It works! Thank you!  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: problem with RenderWith() function. | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19629#post313143&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19629&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sun, 08 Apr 2012 06:20:47 +1200</pubDate>
			<dc:creator>Benas</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19629#post313143</guid>
		</item>
		
		<item>
			<title>Re: problem with RenderWith() function.</title>
			<link>http://www.silverstripe.org/template-questions/show/19629#post313137</link>
			<description>&lt;p&gt;Hi Benas&lt;/p&gt;&lt;p&gt;I'm pretty sure&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$this-&amp;gt;parent-&amp;gt;renderWith('dropdownmenu');&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;should read&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$this-&amp;gt;owner-&amp;gt;renderWith('dropdownmenu');&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: problem with RenderWith() function. | &lt;a href=&quot;http://www.silverstripe.org/template-questions/show/19629#post313137&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/template-questions/reply/19629&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sun, 08 Apr 2012 02:51:21 +1200</pubDate>
			<dc:creator>dizzystuff</dc:creator>
			<guid>http://www.silverstripe.org/template-questions/show/19629#post313137</guid>
		</item>
		

	</channel>
</rss>
