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

		
		<item>
			<title>Re: SS3 updateCMSFields issue when decorating extended Page class</title>
			<link>http://www.silverstripe.org/general-questions/show/21508#post322146</link>
			<description>&lt;p&gt;I am using  the silverstripe ecommerce module &lt;a href=&quot;https://github.com/sunnysideup/silverstripe-ecommerce/&quot; rel=&quot;nofollow&quot;&gt;https://github.com/sunnysideup/silverstripe-ecommerce/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I got the same problem. There are 2 lines as mentioned by nimesodelta:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;//prevent calling updateSettingsFields extend function too early&lt;/p&gt;&lt;p&gt;        $siteTreeFieldExtensions = $this-&amp;gt;get_static('SiteTree','runCMSFieldsExtensions');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;disableCMSFieldsExtensions();&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;i have to take it out as well&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: SS3 updateCMSFields issue when decorating extended Page class | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/21508#post322146&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/21508&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 22 May 2013 00:03:31 +1200</pubDate>
			<dc:creator>BenWu</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/21508#post322146</guid>
		</item>
		
		<item>
			<title>How to detect how long the user is logged in </title>
			<link>http://www.silverstripe.org/general-questions/show/23795</link>
			<description>&lt;p&gt;Hello &lt;/p&gt;&lt;p&gt;I wonder if there is a way in SS to tell  how long the user logged in from the front end? I will then record this and show it in the CMS backend. &lt;/p&gt;&lt;p&gt;thanks&lt;/p&gt;&lt;p&gt;Ben&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: How to detect how long the user is logged in  | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23795&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23795&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 21 May 2013 10:11:11 +1200</pubDate>
			<dc:creator>BenWu</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23795</guid>
		</item>
		
		<item>
			<title>Hip Hop (for PHP)</title>
			<link>http://www.silverstripe.org/general-questions/show/23792</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Has anyone had any experience with Silverstirpe (preferably 2.4.x) and &lt;a href=&quot;https://github.com/facebook/hiphop-php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/facebook/hiphop-php&lt;/a&gt; ?&lt;/p&gt;&lt;p&gt;Barry&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Hip Hop (for PHP) | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23792&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23792&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 21 May 2013 02:32:43 +1200</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23792</guid>
		</item>
		
		<item>
			<title>DropdownFields -with image</title>
			<link>http://www.silverstripe.org/general-questions/show/23791</link>
			<description>&lt;p&gt;is it possible to have dropdown fields  each option as an image instead of text.&lt;/p&gt;&lt;p&gt;This is for  SS3   Admin area.&lt;/p&gt;&lt;p&gt;I suppose  i could/ should use  OptionField  instead?&lt;/p&gt;&lt;p&gt;I was thinking a dropdown field  may save admin space.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DropdownFields -with image | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23791&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23791&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 21 May 2013 01:57:39 +1200</pubDate>
			<dc:creator>merrick_sd</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23791</guid>
		</item>
		
		<item>
			<title>Re: Attaching same image to several dtaobjects</title>
			<link>http://www.silverstripe.org/general-questions/show/20985#post322134</link>
			<description>&lt;p&gt;did you found a solution, because i have the sae issue?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Attaching same image to several dtaobjects | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/20985#post322134&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/20985&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 21 May 2013 01:19:17 +1200</pubDate>
			<dc:creator>Robke</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/20985#post322134</guid>
		</item>
		
		<item>
			<title>Mutiple File picker/ multiple image picker?</title>
			<link>http://www.silverstripe.org/general-questions/show/23784</link>
			<description>&lt;p&gt;Hi there, I'm very new to Sliverstripe.&lt;/p&gt;&lt;p&gt;I want to be able to attach or associate multiple files to a page type.&lt;br /&gt;for example I have a page type 'Album' and I want to pick multiple mp3 tracks that have already been uploaded into the cms.&lt;/p&gt;&lt;p&gt;rather than having to create another page type 'track' and have one upload field per track, as that would be overkill and could be time consuming to create for Website Editors&lt;/p&gt;&lt;p&gt;anything spring to mind? Has-many File Manager looks like it would do what I need, but seem to be way-old and its not compatible with my version (I'm using v3.05)&lt;/p&gt;&lt;p&gt;thanks for any advice&lt;/p&gt;&lt;p&gt;Cheers,&lt;br /&gt;- Tim&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Mutiple File picker/ multiple image picker? | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23784&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23784&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 20 May 2013 14:10:24 +1200</pubDate>
			<dc:creator>SilvaStriper</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23784</guid>
		</item>
		
		<item>
			<title>Re: SS 2.4: modifying generated markup &quot;assets&quot; path</title>
			<link>http://www.silverstripe.org/general-questions/show/23734#post322121</link>
			<description>&lt;p&gt;Thanks Willr - that's ultimately what I wound up doing.&lt;/p&gt;&lt;p&gt;Setup a &quot;Search and Replace&quot; custom script, which gets run at the very end of the static exporter batch script I created.&lt;/p&gt;&lt;p&gt;Guessing that I could have done something with the overriding the File and Image objects' onAfterWrite method to accomplish the same, but figured this would be easier in the long run.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: SS 2.4: modifying generated markup &amp;quot;assets&amp;quot; path | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23734#post322121&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23734&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 20 May 2013 10:37:06 +1200</pubDate>
			<dc:creator>ImacSS</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23734#post322121</guid>
		</item>
		
		<item>
			<title>Re: [Solved] Uploading (dumping fields) to database</title>
			<link>http://www.silverstripe.org/general-questions/show/23781#post322119</link>
			<description>&lt;p&gt;Solved it was a \r on the Lances field, i changed Lances to Text but the \r was there and making me nut  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;br /&gt;i replaced them on my .sql file and dumped again, and now is working fine.&lt;/p&gt;&lt;p&gt;when i upload site to production i will put it in showcase&lt;/p&gt;&lt;p&gt;regards&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved] Uploading (dumping fields) to database | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23781#post322119&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23781&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 20 May 2013 05:36:19 +1200</pubDate>
			<dc:creator>PhiloPachem</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23781#post322119</guid>
		</item>
		
		<item>
			<title>[Solved] Uploading (dumping fields) to database</title>
			<link>http://www.silverstripe.org/general-questions/show/23781</link>
			<description>&lt;p&gt;Hi i have created a page like this:&lt;/p&gt;&lt;p&gt;Problema.php&lt;br /&gt;&amp;lt;?php&lt;br /&gt;class Problema extends DataObject {&lt;br /&gt;    static $db = array(&lt;br /&gt;        'Desc' =&amp;gt; 'Varchar',&lt;br /&gt;        'FEN' =&amp;gt; 'Varchar(90)',&lt;br /&gt;        'Lances' =&amp;gt; 'Varchar(200)',&lt;br /&gt;    );&lt;br /&gt;    static $has_one = array(&lt;br /&gt;        'TipoProblema' =&amp;gt; 'TipoProblema'&lt;br /&gt;    );  &lt;br /&gt;}&lt;/p&gt;&lt;p&gt;TipoProblema.php (my holder)&lt;/p&gt;&lt;p&gt;&amp;lt;?php&lt;br /&gt;class TipoProblema extends Page {&lt;/p&gt;&lt;p&gt;    static $has_many = array(&lt;br /&gt;        'Problemas' =&amp;gt; 'Problema'&lt;br /&gt;    );&lt;/p&gt;&lt;p&gt;....&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function MostraProblema() {&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;$problemas = new PaginatedList(Problema::get($callerClass = &quot;Problema&quot;,$filter = &quot;`TipoProblemaID` = '&quot;.$this-&amp;gt;ID.&quot;'&quot;), $this-&amp;gt;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;$problemas-&amp;gt;setPageLength(1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $problemas;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;i then insert into with mysql console&lt;/p&gt;&lt;p&gt;INSERT INTO `Problema` (`ID`, `ClassName`, `Created`, `LastEdited`, `Desc`, `FEN`, `Lances`, `TipoProblemaID`) VALUES &lt;br /&gt;(88, 'Problema', '2013-05-14 15:05:23', '2013-05-16 02:24:07', 'achmaty #1' , 'bb1Q4/5KpB/8/4p1Rr/1N3kpB/1r6/3P1p1P/3nNR2 w - - 0 1', '1. Qd5 Ne3 (1... Bd6 2. Ng2#) (1... Bc7 2. Ng2#) (1... Ba7 2. Ng2# (2. Qxe5#)) (1... Bxd5+ 2. Nxd5#) (1... Bc6 2. Ng2#) (1... Bb7 2. Ng2#) (1... g6 2. Ng2#) (1... Rxh4 2. Rf5#) (1... Rxg5 2. Ng2#) (1... Rxh7 2. Ng2#) (1... Rh6 2. Ng2# (2. Rf5#)) (1... e4 2. Qf5#) (1... g3 2. Ng2#) (1... Rb1 2. Ned3# (2. Nbd3#) (2. Ng2#)) (1... Rb2 2. Ned3# (2. Nbd3#) (2. Ng2#)) (1... Ra3 2. Ng2#) (1... Rh32. Ng2#) (1... Rg3 2. hxg3#) (1... Rf3 2. Ng2#) (1... Re3 2. Ng2#) (1... Rd32. Nexd3# (2. Nbxd3#) (2. Ng2#)) (1... Rc3 2. Ng2#) (1... Rxb4 2. Nd3# (2. Ng2#)) (1... Nb2 2. Ng2#) (1... Nc3 2. Ned3# (2. Ng2#)) 2. Rxf2# 1-0', 22),&lt;br /&gt;(89, 'Problema', '2013-05-14 15:05:23', '2013-05-16 02:24:07', 'Magyar Sakkelet #2' , '1K2BN2/8/b2pR3/1p1kBpPQ/1Pp5/2n3N1/5pP1/8 w - - 0 1', '1. Ne2 (1. Bc6+ Kxc6 2. Rxd6#) 1... f1=Q (1... dxe5 2. Bc6#) (1... Bc8 2. Nxc3#) (1... Bb7 2. Nxc3#) (1... f4 2. Nxc3#) (1... Ke4 2. Qf3#) (1... Nb1 2. Qf3#) (1... Nd1 2. Qf3#) (1... Na2 2. Qf3#) (1... Nxe2 2. Qf3#) (1... Na4 2. Qf3#) (1... Ne4 2. Nf4#) (1... f1=N 2. Nxc3#) (1... f1=B 2. Nxc3#) (1... f1=R 2. Nxc3#)2. Nxc3# 1-0', 22),&lt;br /&gt;(810, 'Problema', '2013-05-14 15:05:23', '2013-05-16 02:24:07', 'Magyar Sakkelet #3' , '3KBN2/8/b2pR3/1p1kBpPQ/1Pp5/2n3N1/6P1/8 w - - 0 1', '1. Ne2 (1. Bxc3 f4 (1... Bc8 2. Qf3# (2. Qd1#)) (1... Bb7 2. Qf3# (2. Qd1#))2. g6# (2. Qd1#) (2. Qf3#)) 1... Ne4 (1... dxe5 2. Bc6#) (1... Bc8 2. Nxc3#) (1... Bb7 2. Nxc3#) (1... f4 2. Nxc3#) (1... Ke4 2. Qf3#) (1... Nb1 2. Qf3#) (1... Nd1 2. Qf3#) (1... Na2 2. Qf3#) (1... Nxe2 2. Qf3#) (1... Na4 2. Qf3#)2. Nf4# 1-0', 22),&lt;br /&gt;(811, 'Problema', '2013-05-14 15:05:23', '2013-05-16 02:24:07', '? #4' , 'K2Q4/5p2/N1pp1rn1/p2kBP1N/2r1R1pq/bP6/b1P5/7B w - - 0 1', '1. Qb6 Bxb3 2. Nc7# 1-0', 22),&lt;br /&gt;(812, 'Problema', '2013-05-14 15:05:23', '2013-05-16 02:24:07', 'Hlas l´udu  #5' , 'b2R1Q1B/r6B/4p1P1/p3N1p1/2P1kbP1/K1P1N3/2PPn1Pn/8 w - - 0 1', '1. Nf7 Nd4 (1... Bd5 2. g7#) (1... Bc6 2. g7#) (1... Bb7 2. g7#) (1... Ra62. g7#) (1... Rxf7 2. gxf7#) (1... Re7 2. g7#) (1... Rd7 2. g7#) (1... Rc72. g7#) (1... Rb7 2. g7#) (1... e5 2. Nd6# (2. g7#)) (1... a4 2. g7#) (1... Bg32. Nxg5#) (1... Bxe3 2. Nd6#) (1... Bb8 2. Nxg5#) (1... Bc7 2. Nxg5#) (1... Bd6+2. Nxd6#) (1... Be5 2. Nxg5#) (1... Nf1 2. g7#) (1... Nf3 2. g7#) (1... Nxg42. g7#) (1... Nc1 2. g7# (2. Rd4#)) (1... Ng1 2. g7# (2. Rd4#)) (1... Nxc32. g7# (2. Rd4#)) (1... Ng3 2. Rd4#) 2. Rxd4# 1-0', 22);&lt;/p&gt;&lt;p&gt;With this few number of records everything works fine...&lt;br /&gt;now i tried to upload 17000 records.&lt;br /&gt;for them to apear i need to go to CMS and save one by one!!!&lt;br /&gt;anyone can help, i can not open and save the 17000 records to this to work!&lt;br /&gt;If i go to CMS and save the record it will apear correctly on frontend!&lt;br /&gt;the .sql file is created by a script pherhaps is a char that is troubling!!&lt;br /&gt;anyone?! regards&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved] Uploading (dumping fields) to database | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23781&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23781&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 20 May 2013 03:27:34 +1200</pubDate>
			<dc:creator>PhiloPachem</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23781</guid>
		</item>
		
		<item>
			<title>Re: Adding custom sidebar navigation to each page selectively?</title>
			<link>http://www.silverstripe.org/general-questions/show/23768#post322105</link>
			<description>&lt;p&gt;Hey Panupat,&lt;/p&gt;&lt;p&gt;Take a look at the &amp;lt;li&amp;gt; element in the code i provided.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$Link&quot; class=&quot;$LinkingMode&quot;&amp;gt;$Title.XML&amp;lt;/a&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;the $LinkingMode template variable will return either &quot;current&quot;, &quot;section&quot; or &quot;link&quot;. You can use this feature with CSS to hide/show the pages you want displayed in the menu e.g, only show the menu item with the class &quot;current&quot; for example. For a better explanation check out the tutorial page here  &lt;a href=&quot;http://doc.silverstripe.org/framework/en/tutorials/1-building-a-basic-site&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/framework/en/tutorials/1-building-a-basic-site&lt;/a&gt; and do a search for $LinkingMode.&lt;/p&gt;&lt;p&gt;If you haven't gone through the basic tutorial you really should. It will help get you started with developing websites in SilverStripe.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Adding custom sidebar navigation to each page selectively? | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23768#post322105&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23768&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 18 May 2013 22:19:20 +1200</pubDate>
			<dc:creator>IOTI</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23768#post322105</guid>
		</item>
		
		<item>
			<title>Re: Adding custom sidebar navigation to each page selectively?</title>
			<link>http://www.silverstripe.org/general-questions/show/23768#post322104</link>
			<description>&lt;p&gt;Thanks IOTI. But if I do a loop, I would get links to all pages. There are going to be a lot of pages in my site. For ex.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:blue&quot;&gt;FF1&lt;br /&gt;- sub pages&lt;br /&gt;FF2&lt;br /&gt;- sub pages&lt;br /&gt;FF3&lt;br /&gt;- sub pages&lt;br /&gt;..&lt;br /&gt;..&lt;br /&gt;..&lt;br /&gt;FF14&lt;br /&gt;- subpages&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Let's say I'm viewing a page in FF2, I only want the navigator to show&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:blue&quot;&gt;FF2&lt;br /&gt;- sub pages&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Without any other FF. Would this be possible?&lt;/p&gt;&lt;p&gt;Thanks again  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Adding custom sidebar navigation to each page selectively? | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23768#post322104&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23768&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 18 May 2013 13:38:32 +1200</pubDate>
			<dc:creator>Panupat</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23768#post322104</guid>
		</item>
		
		<item>
			<title>Re: PaginatedList error</title>
			<link>http://www.silverstripe.org/general-questions/show/23664#post322102</link>
			<description>&lt;p&gt;Is your function in the controller class? i.e in the &quot;class Page_Controller extends ContentController&quot;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: PaginatedList error | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23664#post322102&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23664&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 18 May 2013 06:48:49 +1200</pubDate>
			<dc:creator>IOTI</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23664#post322102</guid>
		</item>
		
		<item>
			<title>Re: Adding custom sidebar navigation to each page selectively?</title>
			<link>http://www.silverstripe.org/general-questions/show/23768#post322101</link>
			<description>&lt;p&gt;Hello Panupat!&lt;/p&gt;&lt;p&gt;This would be very easy to achieve in SilverStripe! You could take advantage of the Menu() and Children() function in your template to achieve what you want. You would most likely put this in your Sidebar.ss template. Here is some example code to get you started.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if Menu(1) %&amp;gt;&lt;br /&gt;&amp;lt;ul&amp;gt;&lt;br /&gt;&amp;lt;% loop Menu(1) %&amp;gt;&lt;br /&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$Link&quot; class=&quot;$LinkingMode&quot;&amp;gt;$Title.XML&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;% if Children %&amp;gt;&lt;br /&gt;&amp;lt;ul&amp;gt;&lt;br /&gt;&amp;lt;% loop Children %&amp;gt;&lt;br /&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$Link&quot; class=&quot;$LinkingMode&quot;&amp;gt;$Title.XML&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;% end_loop %&amp;gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;% end_loop %&amp;gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;This is generally how you would create a &quot;nested&quot; menu in SS. So if you created a top level &quot;Ff1&quot; page and it had the sub pages &quot;characters&quot; and another one &quot;weapons&quot; they would only appear below your &quot;Ff1&quot; page. You'll have to create the CSS yourself to style the menu though.&lt;/p&gt;&lt;p&gt;Are you using a custom theme or the default Simple theme?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Adding custom sidebar navigation to each page selectively? | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23768#post322101&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23768&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 18 May 2013 06:41:49 +1200</pubDate>
			<dc:creator>IOTI</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23768#post322101</guid>
		</item>
		
		<item>
			<title>Adding custom sidebar navigation to each page selectively?</title>
			<link>http://www.silverstripe.org/general-questions/show/23768</link>
			<description>&lt;p&gt;Just started testing out SilverStripe and I'm liking how I can add sub page very much. I'm curious if SS will be able to do this? &lt;/p&gt;&lt;p&gt;My website is a Final Fantasy website and there are tons in the franchise as you can imagined. Now my site structure is something like this&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:blue&quot;&gt;ff1&lt;br /&gt;- characters&lt;br /&gt;- weapons&lt;br /&gt;- etc&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:green&quot;&gt;ff2&lt;br /&gt;- characters&lt;br /&gt;- magics&lt;br /&gt;- etc&lt;/span&gt;&lt;/p&gt;&lt;p&gt;What I want is a navigational sidebar that displays links only in their same category.&lt;br /&gt;So for pages in blue, the sidebar would only show links to blue pages. For pages in green, the sidebar would only show links to green pages. And etc.&lt;/p&gt;&lt;p&gt;Is it possible to do in SS? &lt;/p&gt;&lt;p&gt;I wouldn't mind at all if the sidebar needs to be created manually. As long as there's a way to selectively add them to the pages I want.&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Adding custom sidebar navigation to each page selectively? | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23768&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23768&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 18 May 2013 05:12:57 +1200</pubDate>
			<dc:creator>Panupat</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23768</guid>
		</item>
		
		<item>
			<title>Re: Toggle dropdown box</title>
			<link>http://www.silverstripe.org/general-questions/show/23759#post322097</link>
			<description>&lt;p&gt;Do you plan on using the already existing tag(s) field as categories or do you want to use a separate managed list of categories? &lt;/p&gt;&lt;p&gt;If its the latter you could try using a module I made: &lt;a href=&quot;https://github.com/IOTI/silverstripe-blogcategories&quot; rel=&quot;nofollow&quot;&gt;https://github.com/IOTI/silverstripe-blogcategories&lt;/a&gt;. It does not have a built it dropdown for selecting a category on the front end but you could build one yourself. If you don't want or have need of the module you could look at my code and see how i added extra controller actions to the blog holder i.e it uses &lt;/p&gt;&lt;p&gt;&quot;yoursitelink.com/blog/category/category-name&quot; for filtering blog posts by a selected category.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Toggle dropdown box | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23759#post322097&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23759&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 18 May 2013 03:04:19 +1200</pubDate>
			<dc:creator>IOTI</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23759#post322097</guid>
		</item>
		
		<item>
			<title>Re: content-modules instead of wysiwyg-editor</title>
			<link>http://www.silverstripe.org/general-questions/show/23750#post322090</link>
			<description>&lt;p&gt;I will try to find some time for doing a screencast.&lt;/p&gt;&lt;p&gt;But using the module should be quite easy, install following the instructions and try to add some sections.&lt;br /&gt;Try to switch between the default templates and see the result.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: content-modules instead of wysiwyg-editor | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23750#post322090&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23750&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 22:12:55 +1200</pubDate>
			<dc:creator>Nobrainer Web</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23750#post322090</guid>
		</item>
		
		<item>
			<title>Toggle dropdown box</title>
			<link>http://www.silverstripe.org/general-questions/show/23759</link>
			<description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I am new to SS. I have utilised the existing blog module to manage the blogposts on my site. However, I want to have a dropdown box on the BlogHolder page (list of blogs) where you can select blogs by category. I do not want to touch blog module as it's maintained by someone else, so I want to add another controller action that can be called via Ajax when dropdown box is toggled. So far I have only found extensions that I can add to add more fields to data models, but in this case I don't need to change structure of any blog pagetype. How should I add more controls to existing modules?&lt;/p&gt;&lt;p&gt;Cheers,&lt;br /&gt;Michael&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Toggle dropdown box | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23759&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23759&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 18:55:36 +1200</pubDate>
			<dc:creator>michael_geeky</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23759</guid>
		</item>
		
		<item>
			<title>Re: Help, can&#39;t install any modules.  v3.0.5</title>
			<link>http://www.silverstripe.org/general-questions/show/23739#post322081</link>
			<description>&lt;p&gt;Hi jbryner,&lt;br /&gt;isn't the uploadify module a 2.4 extension (from the righteous uncle cheese) don't think that will be compatible with 3.x&lt;br /&gt;Also I had some issue with blog modules, as I was downloading the master copies of the branches on Github. I managed to get the GridField &amp;amp; Sortable grid going, if you're still having issues with the modules I can upload the versions I have.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Help, can&amp;#39;t install any modules.  v3.0.5 | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23739#post322081&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23739&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 12:41:43 +1200</pubDate>
			<dc:creator>Bambii7</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23739#post322081</guid>
		</item>
		
		<item>
			<title>Re: Cache headers</title>
			<link>http://www.silverstripe.org/general-questions/show/23757#post322080</link>
			<description>&lt;p&gt;It looks like you can set cache age in the config file &lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;HTTP::set_cache_age()&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;It's a good question and I can't say I've looked into the caching that much. What was the telnet command you used to reveal the cache info?&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://doc.silverstripe.org/framework/en/howto/cache-control&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/framework/en/howto/cache-control&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://api.silverstripe.org/3.0/class-HTTP.html#_set_cache_age&quot; rel=&quot;nofollow&quot;&gt;http://api.silverstripe.org/3.0/class-HTTP.html#_set_cache_age&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Cache headers | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23757#post322080&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23757&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 12:35:57 +1200</pubDate>
			<dc:creator>Bambii7</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23757#post322080</guid>
		</item>
		
		<item>
			<title>Re: Email notifications on new and updated data objects</title>
			<link>http://www.silverstripe.org/general-questions/show/23756#post322079</link>
			<description>&lt;p&gt;Thats not a bad way to do it, looks good.&lt;/p&gt;&lt;p&gt;Depending on how frequently products are updated I would find the update email somewhat annoying if it was occurring multiple times a day. I would add a new boolean field to the object, mark it as updated, then send out an email daily or even weekly depending on the requirements.&lt;/p&gt;&lt;p&gt;Using Scheduled tasks, even though it's 2.4 docs it will be the same for 3.x&lt;br /&gt;&lt;a href=&quot;http://api.silverstripe.org/2.4/class-ScheduledTask.html&quot; rel=&quot;nofollow&quot;&gt;http://api.silverstripe.org/2.4/class-ScheduledTask.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;class ProductUpdateTask extends DailyTask {&lt;br /&gt;    function process() {&lt;br /&gt;      // email product summary here&lt;br /&gt;    }&lt;br /&gt;  }&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Email notifications on new and updated data objects | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23756#post322079&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23756&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 12:27:24 +1200</pubDate>
			<dc:creator>Bambii7</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23756#post322079</guid>
		</item>
		
		<item>
			<title>Cache headers</title>
			<link>http://www.silverstripe.org/general-questions/show/23757</link>
			<description>&lt;p&gt;I've been advised that caching is not working on my site. I find this odd because I'm explicitly setting the following in my config:&lt;/p&gt;&lt;p&gt;Director::set_environment_type(&quot;live&quot;);&lt;/p&gt;&lt;p&gt;Shouldn't this enable caching by default?&lt;/p&gt;&lt;p&gt;I've just checked my headers using telnet and found this:&lt;/p&gt;&lt;p&gt;Cache-Control: no-cache, max-age=0, must-revalidate, no-transform&lt;/p&gt;&lt;p&gt;How can I set max-age to something more suitable for my site?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Cache headers | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23757&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23757&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 04:07:25 +1200</pubDate>
			<dc:creator>Spaghetti</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23757</guid>
		</item>
		
		<item>
			<title>Re: Duplication of userforms went wrong at 3.1.0-beta3</title>
			<link>http://www.silverstripe.org/general-questions/show/23722#post322071</link>
			<description>&lt;p&gt;Ok, i rewrote the function duplicate() in UserDefinedForm.php by myself. It duplicates correctly and takes over the right conditions.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public function duplicate($doWrite = true) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$page = parent::duplicate($doWrite);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// the form fields&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if($this-&amp;gt;Fields()) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach($this-&amp;gt;Fields() as $field) {&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;$newField = $field-&amp;gt;duplicate();&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;$newField-&amp;gt;ParentID = $page-&amp;gt;ID;&lt;br /&gt;        $newField-&amp;gt;Name = $newField-&amp;gt;ClassName.$newField-&amp;gt;ID;&lt;/p&gt;&lt;p&gt;        //trek eerst de CustomRules uit elkaar&lt;br /&gt;        $ar = array();&lt;br /&gt;        $ar = unserialize($field-&amp;gt;CustomRules); &lt;/p&gt;&lt;p&gt;        if(sizeof($ar) &amp;gt;0){&lt;br /&gt;          $ConditionField = $ar[0]['ConditionField'];&lt;br /&gt;          if($ConditionField != &quot;&quot;){&lt;br /&gt;            //$ar2 = preg_split(&quot;/(\d+)/&quot;, $ConditionField, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);&lt;/p&gt;&lt;p&gt;            //selecteer sorteervolgorde, classname uit editableformfield waar naam = $ConditionField&lt;br /&gt;            $child = DataObject::get('EditableFormField')-&amp;gt;where('Name = \''.$ConditionField.'\'')-&amp;gt;first();&lt;br /&gt;            $sort = $child-&amp;gt;Sort;&lt;br /&gt;            $classname = $child-&amp;gt;ClassName;&lt;/p&gt;&lt;p&gt;            //selecteer id, waar sorteervolgorde en nieuwe parent id&lt;br /&gt;            $new = DataObject::get('EditableFormField')-&amp;gt;where('Sort = '.$sort.' AND ParentID = '.$newField-&amp;gt;ParentID)-&amp;gt;first();&lt;/p&gt;&lt;p&gt;            $ar[0]['ConditionField'] = $new-&amp;gt;Name;&lt;br /&gt;            $ar = serialize($ar);&lt;br /&gt;            $newField-&amp;gt;CustomRules = $ar;&lt;br /&gt;          }&lt;br /&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;$newField-&amp;gt;write(); &lt;br /&gt;        $newField-&amp;gt;doPublish('Stage', 'Live', true);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;    $page-&amp;gt;doPublish('Stage', 'Live');&lt;/p&gt;&lt;p&gt;    // the emails&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if($this-&amp;gt;EmailRecipients()) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach($this-&amp;gt;EmailRecipients() as $email) {&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;$newEmail = $email-&amp;gt;duplicate();&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;$newEmail-&amp;gt;FormID = $page-&amp;gt;ID;&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;$newEmail-&amp;gt;write();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $page;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Duplication of userforms went wrong at 3.1.0-beta3 | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23722#post322071&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23722&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 01:25:16 +1200</pubDate>
			<dc:creator>quanto</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23722#post322071</guid>
		</item>
		
		<item>
			<title>Email notifications on new and updated data objects</title>
			<link>http://www.silverstripe.org/general-questions/show/23756</link>
			<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I have a data object &quot;product&quot;. I'm using the code below to send an email to the administrator when a new product is created. It will also send a different email when a product record was updated. Can someone till if I'm doing it in the correct way, or if there is a better way to set different email notifcations?&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function onBeforeWrite() {&lt;br /&gt;        if(!$this-&amp;gt;ID) {&lt;br /&gt;            $email = new Email();&lt;br /&gt;            $email-&amp;gt;setTo('admin@domain.com');&lt;br /&gt;            $email-&amp;gt;setSubject('New Record Created');&lt;br /&gt;            $email-&amp;gt;setFrom('admin@domain.com');&lt;br /&gt;            $email-&amp;gt;setBody(&quot;A new record was added&quot;);&lt;br /&gt;            $email-&amp;gt;send();&lt;br /&gt;        }&lt;br /&gt;        if( $this-&amp;gt;isChanged() &amp;amp;&amp;amp; $this-&amp;gt;ID) {&lt;br /&gt;                $email = new Email();&lt;br /&gt;                $email-&amp;gt;setTo('admin@domain.comt');&lt;br /&gt;                $email-&amp;gt;setSubject('Record details updated');&lt;br /&gt;                $email-&amp;gt;setFrom('admin@domain.com');&lt;br /&gt;                $email-&amp;gt;setBody(&quot;Details a record are updated&quot;);&lt;br /&gt;                $email-&amp;gt;send();&lt;br /&gt;        }&lt;br /&gt;      parent::onBeforeWrite(); &lt;br /&gt;   }&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Email notifications on new and updated data objects | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23756&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23756&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 00:19:35 +1200</pubDate>
			<dc:creator>sajok</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23756</guid>
		</item>
		
		<item>
			<title>Re: content-modules instead of wysiwyg-editor</title>
			<link>http://www.silverstripe.org/general-questions/show/23750#post322060</link>
			<description>&lt;p&gt;Hi NobrainerWeb,&lt;/p&gt;&lt;p&gt;this module sounds really interesting.&lt;br /&gt;Is it possible that you make a short screencast to show how it works ?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: content-modules instead of wysiwyg-editor | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23750#post322060&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23750&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 16 May 2013 21:47:35 +1200</pubDate>
			<dc:creator>lx</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23750#post322060</guid>
		</item>
		
		<item>
			<title>Re: content-modules instead of wysiwyg-editor</title>
			<link>http://www.silverstripe.org/general-questions/show/23750#post322057</link>
			<description>&lt;p&gt;Hi Bepe,&lt;/p&gt;&lt;p&gt;You are looking for my new module: &lt;a href=&quot;https://github.com/NobrainerWeb/Silverstripe-Section-Module&quot; rel=&quot;nofollow&quot;&gt;https://github.com/NobrainerWeb/Silverstripe-Section-Module&lt;/a&gt; - the module is for SS3.1&lt;br /&gt;It lets you build your content in blocks/sections of content and each section have it's own template.&lt;br /&gt;Creating new templates is as easy as allways in SilverStripe, and for more than templating, extend the Section dataobject (see the _Employee.ss example) and add more advanced functions like galleries and so on.&lt;/p&gt;&lt;p&gt;Let me know what you think  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: content-modules instead of wysiwyg-editor | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23750#post322057&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23750&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 16 May 2013 09:15:44 +1200</pubDate>
			<dc:creator>Nobrainer Web</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23750#post322057</guid>
		</item>
		
		<item>
			<title>content-modules instead of wysiwyg-editor</title>
			<link>http://www.silverstripe.org/general-questions/show/23750</link>
			<description>&lt;p&gt;hello&lt;/p&gt;&lt;p&gt;i'm very new to silverstripe. but i already fell in love with it. the only thing that bothers me is the html-editor. i'm used to a modular page-content as seen in typo3, redaxo and contao.&lt;/p&gt;&lt;p&gt;for example a page in a redaxo-cms is like a folder and you fill it with different modules: headlines, text, wysiwyg, gallery, forms etc. at first it looks annoying, because most of the time all you need is a headline and some text and that's also possible with a html-editor. (anyway i prefer the modules, because with these i can restrict my user to a produce clean content, so no blinking text for them (i've already seen you can strip away functions from the html-editor in silverstripe))&lt;/p&gt;&lt;p&gt;but i can not imagine how to solve this example in a easy way with silverstripe:&lt;br /&gt;there is a databse with some objects in it, and you want to embedd a list of particular objects (picture/text/number) in your text (&amp;lt;p&amp;gt;text&amp;lt;/p&amp;gt;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;obj 1 html&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;obj 2 html&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&amp;lt;p&amp;gt;text&amp;lt;/p&amp;gt;). multiple pages will refer to one object, if this object will change, you only have to change it once.&lt;/p&gt;&lt;p&gt;how do you solve this problem without content-modules?&lt;br /&gt;is there a easy way to make the cms user choose from a list with objects, and not writing ids in the html-editor?&lt;/p&gt;&lt;p&gt;i've already thought about using silverstripe pages as container for other page-like objects with very minimal function (headline, text, gallery, objects), so the container page renders it's children, but this feels like a hack and i imagine a very ugly page-tree.&lt;/p&gt;&lt;p&gt;thanks a lot for your input!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: content-modules instead of wysiwyg-editor | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23750&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23750&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 16 May 2013 08:05:14 +1200</pubDate>
			<dc:creator>bepe</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23750</guid>
		</item>
		
		<item>
			<title>Re: Set Default Value for HTMLEditor field + Rotate per day</title>
			<link>http://www.silverstripe.org/general-questions/show/23725#post322053</link>
			<description>&lt;p&gt;Thank you Bambii7. &lt;/p&gt;&lt;p&gt;I will do some investigation with this information.&lt;/p&gt;&lt;p&gt;Wesley&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Set Default Value for HTMLEditor field + Rotate per day | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23725#post322053&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23725&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 16 May 2013 06:42:16 +1200</pubDate>
			<dc:creator>Wezzlee</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23725#post322053</guid>
		</item>
		
		<item>
			<title>Re: Google Sitemap SS v3.0</title>
			<link>http://www.silverstripe.org/general-questions/show/20722#post322034</link>
			<description>&lt;p&gt;Make sure you download the correct version for your version of SS. The composer.json describes your version requirements.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/silverstripe-labs/silverstripe-googlesitemaps/tree/1.1&quot; rel=&quot;nofollow&quot;&gt;https://github.com/silverstripe-labs/silverstripe-googlesitemaps/tree/1.1&lt;/a&gt; for 3.0&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Google Sitemap SS v3.0 | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/20722#post322034&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/20722&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 20:08:01 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/20722#post322034</guid>
		</item>
		
		<item>
			<title>Re: SS 2.4: modifying generated markup &quot;assets&quot; path</title>
			<link>http://www.silverstripe.org/general-questions/show/23734#post322031</link>
			<description>&lt;p&gt;Your best bet is to run a post task after the static publisher has run to rewrite the static html. Or potentially, symlink assets/ to corporate/assets on the file system so you don't need to muck around with rewriting html files.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: SS 2.4: modifying generated markup &amp;quot;assets&amp;quot; path | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23734#post322031&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23734&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 19:58:06 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23734#post322031</guid>
		</item>
		
		<item>
			<title>Help, can&#39;t install any modules.  v3.0.5</title>
			<link>http://www.silverstripe.org/general-questions/show/23739</link>
			<description>&lt;p&gt;I'm upgrading a site from v2.4 to v3.0.5  I finally got the site up and running, but none of the modules I've installed seem to registering.  For instance, I converted a gallery page to the Photo Gallery detailed in this page: &lt;a href=&quot;http://www.silverstriperesources.com/articles/how-to-make-a-photo-gallery-in-silverstripe-3/&quot; rel=&quot;nofollow&quot;&gt;http://www.silverstriperesources.com/articles/how-to-make-a-photo-gallery-in-silverstripe-3/&lt;/a&gt; .  I uploaded both of the &quot;GridFieldBulkEditingTools&quot; and &quot;SortableGridField&quot; folders to my site's root, with the other main SS files.  But when I load up the gallery page I get a &quot;Fatal error: Class 'GridFieldBulkEditingTools' not found &quot; error.  Neither of those modules show in the /dev/build output.&lt;/p&gt;&lt;p&gt;I also have uploadify and htmlpurifier, neither of those show up in the /dev/build.  &lt;/p&gt;&lt;p&gt;Is there's something that I could've done in the upgrade process that would make these modules not install?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Help, can&amp;#39;t install any modules.  v3.0.5 | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23739&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23739&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 17:47:14 +1200</pubDate>
			<dc:creator>jbryner</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23739</guid>
		</item>
		
		<item>
			<title>Re: Silverstripe Version?</title>
			<link>http://www.silverstripe.org/general-questions/show/23737#post322029</link>
			<description>&lt;p&gt;Right, yep I'd say that safe to assume 2.4, the sapphire folder is pre 3.x&lt;/p&gt;&lt;p&gt;Looks like the $url$ is when they moved away from svn to git... &lt;a href=&quot;http://www.silverstripe.org/upgrading-silverstripe/show/18344&quot; rel=&quot;nofollow&quot;&gt;http://www.silverstripe.org/upgrading-silverstripe/show/18344&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Silverstripe Version? | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23737#post322029&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23737&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 15:22:32 +1200</pubDate>
			<dc:creator>Bambii7</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23737#post322029</guid>
		</item>
		
		<item>
			<title>Re: Silverstripe Version?</title>
			<link>http://www.silverstripe.org/general-questions/show/23737#post322027</link>
			<description>&lt;p&gt;Thanks Bambii7,&lt;/p&gt;&lt;p&gt;I have Sapphire and CMS in the root so looks like its 2.4?.  I did look before at the Sapphire\silverstripe_version file and the only thing in it was $URL$&lt;br /&gt;I appreciate your quick reply though.&lt;/p&gt;&lt;p&gt;Thanks very much.&lt;/p&gt;&lt;p&gt;Enopho.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Silverstripe Version? | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23737#post322027&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23737&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 12:28:43 +1200</pubDate>
			<dc:creator>Enopho</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23737#post322027</guid>
		</item>
		
		<item>
			<title>Re: Set Default Value for HTMLEditor field + Rotate per day</title>
			<link>http://www.silverstripe.org/general-questions/show/23725#post322026</link>
			<description>&lt;p&gt;Hi Wezzlee,&lt;br /&gt;this might be a challenging requirement.&lt;/p&gt;&lt;p&gt;There is a Object called DailyTask you can extend to add daily tasks to. But this will also require that you set up a cron task to execute all daily tasks.&lt;/p&gt;&lt;p&gt;The other way, which ain't so elegant is to have an onBeforePublish method on your model. Which will check each time the page is loaded if the text has updated.&lt;/p&gt;&lt;p&gt;Those are two places to start looking.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Set Default Value for HTMLEditor field + Rotate per day | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23725#post322026&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23725&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 11:56:49 +1200</pubDate>
			<dc:creator>Bambii7</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23725#post322026</guid>
		</item>
		
		<item>
			<title>Re: Silverstripe Version?</title>
			<link>http://www.silverstripe.org/general-questions/show/23737#post322025</link>
			<description>&lt;p&gt;If it's 2.4&lt;br /&gt;You'll see two folders called sapphire &amp;amp; cms in the main site directory.&lt;/p&gt;&lt;p&gt;If it's 3+ you'll see framework &amp;amp; cms&lt;/p&gt;&lt;p&gt;Inside sapphire or framework dir there should be a file called silverstripe_version open that up to see which version you're running (if it's still there)&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Silverstripe Version? | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23737#post322025&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23737&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 11:46:38 +1200</pubDate>
			<dc:creator>Bambii7</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23737#post322025</guid>
		</item>
		
		<item>
			<title>Re: Make a FieldList and a gridfield inside a ModelAdmin</title>
			<link>http://www.silverstripe.org/general-questions/show/23714#post322023</link>
			<description>&lt;p&gt;Oh perhaps take out the field list.&lt;/p&gt;&lt;p&gt;Change&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$classnameField = new FieldList( &lt;br /&gt;   new TextField('Title', 'Class Name'), &lt;br /&gt;   new ReadonlyField('RegisteredStudents', 'Registered Students'), &lt;br /&gt;   new DropdownField('MemberID', 'School Admin', DataList::create(&quot;Member&quot;)-&amp;gt;map(&quot;ID&quot;, &quot;Title&quot;)) &lt;br /&gt;);&lt;br /&gt;$fields-&amp;gt;addFieldToTab('Root.Classes', $classnameField);&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;TO&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$fields-&amp;gt;addFieldToTab( 'Root.Classes', new TextField('Title', 'Class Name') );&lt;br /&gt;$fields-&amp;gt;addFieldToTab( 'Root.Classes', new ReadonlyField('RegisteredStudents', 'Registered Students') );&lt;br /&gt;$fields-&amp;gt;addFieldToTab( 'Root.Classes', new DropdownField('MemberID', 'School Admin', DataList::create(&quot;Member&quot;)-&amp;gt;map(&quot;ID&quot;, &quot;Title&quot;)) );&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Make a FieldList and a gridfield inside a ModelAdmin | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23714#post322023&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23714&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 11:40:11 +1200</pubDate>
			<dc:creator>Bambii7</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23714#post322023</guid>
		</item>
		
		<item>
			<title>Silverstripe Version?</title>
			<link>http://www.silverstripe.org/general-questions/show/23737</link>
			<description>&lt;p&gt;Hello there,&lt;/p&gt;&lt;p&gt;Wonder if you can help. I have taken over supporting a Silverstripe site for a client, but the previous Site Developer has delibiratly removed any reference to the Silverstripe version from the backend admin panel.  Can anyone else point me to where i might find the version that is being used?&lt;/p&gt;&lt;p&gt;Many Thanks&lt;/p&gt;&lt;p&gt;Enopho&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Silverstripe Version? | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23737&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23737&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 11:10:51 +1200</pubDate>
			<dc:creator>Enopho</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23737</guid>
		</item>
		
		<item>
			<title>SS 2.4: modifying generated markup &quot;assets&quot; path</title>
			<link>http://www.silverstripe.org/general-questions/show/23734</link>
			<description>&lt;p&gt;Have an SS 2.4 site deployed. Client is running it out of &amp;lt;DOMAIN&amp;gt;/corporate/.&lt;/p&gt;&lt;p&gt;Also, using the static exporter, as they did not want to have the CMS directly connected to their production site.&lt;/p&gt;&lt;p&gt;All of the images that were added via the CMS, have &quot;src&quot; attributes that begin with &quot;assets/...&quot;.&lt;/p&gt;&lt;p&gt;I would like to know if it's possible (without using a global search &amp;amp; replace on the static output directory) to get the CMS to render these as:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;src=&quot;/corporate/assets/...&quot;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Looked at a solution online which suggested adding an onBeforeWrite() method to the Page class, like so...&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;protected function onBeforeWrite() {&lt;br /&gt;        parent::onBeforeWrite();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;Content = str_replace(' src=&quot;assets/', ' src=&quot;/corporate/assets/', $this-&amp;gt;Content);&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;However, this did not seem to have any effect when I re-ran the static exporter.&lt;/p&gt;&lt;p&gt;Has anyone come up with a solution to this type of problem before?&lt;/p&gt;&lt;p&gt;Thanks for any suggestions!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: SS 2.4: modifying generated markup &amp;quot;assets&amp;quot; path | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23734&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23734&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 05:43:47 +1200</pubDate>
			<dc:creator>ImacSS</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23734</guid>
		</item>
		
		<item>
			<title>Set Default Value for HTMLEditor field + Rotate per day</title>
			<link>http://www.silverstripe.org/general-questions/show/23725</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am working on a homepage template where a default value should be set when HTMLEditor field X is empty or when a day is passed and the HTMLEditor field X is not filled out with a &lt;strong&gt;new&lt;/strong&gt; value.&lt;/p&gt;&lt;p&gt;I want to update the homepage every day with a daily menu. But it might occur that I forget to set the menu and because the daily menu changes every day I want to replace the menu with the opening times of the restaurant.&lt;/p&gt;&lt;p&gt;I am no php specialist so any help with this is appreciated. What do I need to alter to achieve this?&lt;/p&gt;&lt;p&gt;&amp;lt;?php&lt;br /&gt;class HomePage extends Page {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $db = array(&lt;br /&gt;        'Sidetext' =&amp;gt; 'HTMLText'&lt;br /&gt;    );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;public function getCMSFields() {&lt;br /&gt;        $fields = parent::getCMSFields();&lt;br /&gt;        $fields-&amp;gt;addFieldToTab('Root.Main', new HTMLEditorField('Sidetext'), 'Content');&lt;/p&gt;&lt;p&gt;        return $fields;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;class HomePage_Controller extends Page_Controller {&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;Thank you in advance,&lt;/p&gt;&lt;p&gt;Wesley&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Set Default Value for HTMLEditor field + Rotate per day | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23725&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23725&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 14 May 2013 06:30:13 +1200</pubDate>
			<dc:creator>Wezzlee</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23725</guid>
		</item>
		
		<item>
			<title>Re: Creating an editable jQuery Tabbed Panel</title>
			<link>http://www.silverstripe.org/general-questions/show/18638#post322006</link>
			<description>&lt;p&gt;Isn't there anyone that could offer up directions and code to make this happen?&lt;/p&gt;&lt;p&gt;I know this was covered in the past (looks like 2011) but I'm new to SS and hoping someone can show me how to get this working.&lt;/p&gt;&lt;p&gt;Thanks again.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Creating an editable jQuery Tabbed Panel | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/18638#post322006&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/18638&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 14 May 2013 00:54:13 +1200</pubDate>
			<dc:creator>goodness</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/18638#post322006</guid>
		</item>
		
		<item>
			<title>ShortCode hander in 2.3.2</title>
			<link>http://www.silverstripe.org/general-questions/show/23724</link>
			<description>&lt;p&gt;So, I told I client I could add a shortcode handler to add youtube clips, tried it, and realised they're using sivlerstripe 2.3.2&lt;/p&gt;&lt;p&gt;I added the shortcode file (sapphire/master/parsers/ShortcodeParser.php) which means the page gives no errors, but it doesn't actually replace the code with the content from the handler.&lt;/p&gt;&lt;p&gt;Does anyone know if it's possible to get this running in 2.3.2?&lt;/p&gt;&lt;p&gt;I know the best option is to upgrade the site to 2.4 or even 3, but i'm only charging a few minutes work for this task...&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: ShortCode hander in 2.3.2 | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23724&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23724&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 13 May 2013 23:27:46 +1200</pubDate>
			<dc:creator>Futureweb</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23724</guid>
		</item>
		
		<item>
			<title>Re: Google Sitemap SS v3.0</title>
			<link>http://www.silverstripe.org/general-questions/show/20722#post322001</link>
			<description>&lt;p&gt;Hi, for me i dosent work, i always get an error&lt;br /&gt;SS 3.0.5&lt;/p&gt;&lt;p&gt;Warning: Missing argument 2 for Object::add_extension(), called in /home/clever-fit/seminario-landsberg.de/mysite/_config.php on line 29 and defined in /home/clever-fit/seminario-landsberg.de/framework/core/Object.php on line 453 Notice: Undefined variable: extension in /home/clever-fit/seminario-landsberg.de/framework/core/Object.php on line 454 Fatal error: Object::add_extension() - Can't find extension class for &quot;&quot; in /home/clever-fit/seminario-landsberg.de/framework/core/Object.php on line 460&lt;/p&gt;&lt;p&gt;Best regards bastiR&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Google Sitemap SS v3.0 | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/20722#post322001&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/20722&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 13 May 2013 20:46:37 +1200</pubDate>
			<dc:creator>Bastir</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/20722#post322001</guid>
		</item>
		
		<item>
			<title>Duplication of userforms went wrong at 3.1.0-beta3</title>
			<link>http://www.silverstripe.org/general-questions/show/23722</link>
			<description>&lt;p&gt;I'm trying to duplicate a page including form. Because 3.0.x doesn't have the ability to duplicate, I choosed to use the 3.1.0 beta &lt;br /&gt;3.&lt;/p&gt;&lt;p&gt;It works brilliant, except a part of the duplication in the form.&lt;/p&gt;&lt;p&gt;When set a CustomRule, and duplicate the page, the new page still get's the Rule from the old source. (e.g. &quot;EditableRadioField13&quot; instead of &quot;EditableRadioField26&quot;). Is there a easy solution without a complete rebuild of the function duplicate()?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Duplication of userforms went wrong at 3.1.0-beta3 | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23722&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23722&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 13 May 2013 19:14:08 +1200</pubDate>
			<dc:creator>quanto</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23722</guid>
		</item>
		
		<item>
			<title>Re: Customizing $Breadcrumbs</title>
			<link>http://www.silverstripe.org/general-questions/show/10128?start=8#post321999</link>
			<description>&lt;p&gt;@Apophis, you can now (in 3.0) use a template to customize the breadcrumbs (&lt;a href=&quot;https://github.com/silverstripe/silverstripe-cms/blob/3.0/templates/BreadcrumbsTemplate.ss&quot; rel=&quot;nofollow&quot;&gt;https://github.com/silverstripe/silverstripe-cms/blob/3.0/templates/BreadcrumbsTemplate.ss&lt;/a&gt;). To use your own, copy that to yourtheme/templates/BreadcrumbTemplate.ss and customize as you wish!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Customizing $Breadcrumbs | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/10128?start=8#post321999&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/10128&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 13 May 2013 17:31:00 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/10128?start=8#post321999</guid>
		</item>
		
		<item>
			<title>Re: Make a FieldList and a gridfield inside a ModelAdmin</title>
			<link>http://www.silverstripe.org/general-questions/show/23714#post321998</link>
			<description>&lt;p&gt;Hi Bambii7,&lt;/p&gt;&lt;p&gt;thanks for replying.. I tried that code, but it shows this error:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;[User Error] Uncaught Exception: Object-&amp;gt;__call(): the method 'getname' does not exist on 'FieldList'&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;any idea?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Make a FieldList and a gridfield inside a ModelAdmin | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23714#post321998&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23714&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 13 May 2013 13:21:20 +1200</pubDate>
			<dc:creator>sajok</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23714#post321998</guid>
		</item>
		
		<item>
			<title>Re: Make a FieldList and a gridfield inside a ModelAdmin</title>
			<link>http://www.silverstripe.org/general-questions/show/23714#post321997</link>
			<description>&lt;p&gt;You're only returning the class field. You need to capture the parent fields at the top of your function then appeaned new ones before returning.&lt;/p&gt;&lt;p&gt;Try this out&lt;/p&gt;&lt;p&gt;public function getCMSFields() {&lt;/p&gt;&lt;p&gt;// get parent fields&lt;br /&gt;$fields = parent::getCMSFields(); &lt;/p&gt;&lt;p&gt;// add class field to form&lt;br /&gt;$classnameField = new FieldList( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('Title', 'Class Name'), &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new ReadonlyField('RegisteredStudents', 'Registered Students'), &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new DropdownField('MemberID', 'School Admin', DataList::create(&quot;Member&quot;)-&amp;gt;map(&quot;ID&quot;, &quot;Title&quot;)) &lt;br /&gt;);&lt;br /&gt;$fields-&amp;gt;addFieldToTab('Root.Classes', $classnameField); &lt;/p&gt;&lt;p&gt;// Create a default configuration for the new GridField, allowing record editing &lt;br /&gt;$config = GridFieldConfig_RelationEditor::create(); &lt;br /&gt;// Set the names and data for our gridfield columns &lt;br /&gt;$config-&amp;gt;getComponentByType('GridFieldDataColumns')-&amp;gt;setDisplayFields(array( &lt;br /&gt;'FirstName' =&amp;gt; 'FirstName', &lt;br /&gt;'Surname' =&amp;gt; 'Surname', &lt;br /&gt;'Course.Title'=&amp;gt; 'Course' // Retrieve from a has-one relationship &lt;br /&gt;)); &lt;br /&gt;// Create a gridfield to hold the student relationship &lt;br /&gt;$studentsField = new GridField( &lt;br /&gt;'Students', // Field name &lt;br /&gt;'Student', // Field title &lt;br /&gt;$this-&amp;gt;Students(), // List of all related students &lt;br /&gt;$config &lt;br /&gt;); &lt;br /&gt;$fields-&amp;gt;addFieldToTab('Root.Students', $studentsField); &lt;/p&gt;&lt;p&gt;// return my new fields&lt;br /&gt;return $fields;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Make a FieldList and a gridfield inside a ModelAdmin | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23714#post321997&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23714&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 13 May 2013 11:58:52 +1200</pubDate>
			<dc:creator>Bambii7</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23714#post321997</guid>
		</item>
		
		<item>
			<title>Re: PaginatedList error</title>
			<link>http://www.silverstripe.org/general-questions/show/23664#post321996</link>
			<description>&lt;p&gt;I've tried to:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function Paginando() { &lt;br /&gt;return new PaginatedList($this-&amp;gt;Children(),$this-&amp;gt;request); &lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;just to make it work with the children pages, but whenever i add the &quot;$this-&amp;gt;request&quot;, the page crash and shows this message:&lt;/p&gt;&lt;p&gt;26 &amp;nbsp;&amp;nbsp;&amp;nbsp;public function __construct(SS_List $list, $request = array()) {&lt;br /&gt;27 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (!is_array($request) &amp;amp;&amp;amp; !$request instanceof ArrayAccess) {&lt;br /&gt;28 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:red&quot;&gt;throw new Exception('The request must be readable as an array.');&lt;/span&gt;&lt;br /&gt;29 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: PaginatedList error | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23664#post321996&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23664&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 13 May 2013 10:45:15 +1200</pubDate>
			<dc:creator>Dimenicius</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23664#post321996</guid>
		</item>
		
		<item>
			<title>Re: SS 3.1.0-beta2 and time values</title>
			<link>http://www.silverstripe.org/general-questions/show/23717#post321995</link>
			<description>&lt;p&gt;&lt;em&gt;Edited to simplify code example&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Well, after migrating everything over to beta3, I'd say the problem still exists.&lt;/p&gt;&lt;p&gt;Here's how I have things setup:&lt;/p&gt;&lt;p&gt;Event.php &lt;br /&gt;(NOTE: This is inherited from GalleryObject.php as I have onAfterWrite methods that apply to a number of classes.&lt;br /&gt;The 'BeginDT' and 'EndingDT' fields I added to see if using the SS_Datetime fields would make a difference.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class Event extends GalleryObject {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;private static $db = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Name' =&amp;gt; 'Varchar(75)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Description' =&amp;gt; 'Text',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'StartDate' =&amp;gt; 'Date',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'EndDate' =&amp;gt; 'Date',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'StartTime' =&amp;gt; 'Time',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'EndTime' =&amp;gt; 'Time'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getCMSFields() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = parent::getCMSFields();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// ...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$startDate = new DateField('StartDate', 'Starting Date');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$startDate-&amp;gt;setConfig('showcalendar', true);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Main', $startDate);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$endingDate = new DateField('EndDate', 'Ending Date');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$endingDate-&amp;gt;setConfig('showcalendar', true);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Main', $endingDate);&lt;/p&gt;&lt;p&gt;                // When 'PM' values are entered into these fields, they get converted to 'AM' once saved&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Main', new TimeField('StartTime', 'Starting Time'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Main', new TimeField('EndTime', 'Ending Time'));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $fields;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;There is an EventAdmin.php file which extends ModelAdmin to manage Event entries, which is setup to only manage Event objects.&lt;/p&gt;&lt;p&gt;Is there something ridiculous I'm doing here?&lt;/p&gt;&lt;p&gt;Regardless of what 'PM' type value I put into either StartTime, EndTime, or the time fields of BeginDT or EndingDT - the CMS ignores these values and stores the times as the 'AM' equivelant.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: SS 3.1.0-beta2 and time values | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23717#post321995&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23717&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 13 May 2013 09:06:53 +1200</pubDate>
			<dc:creator>ImacSS</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23717#post321995</guid>
		</item>
		
		<item>
			<title>Re: Customizing $Breadcrumbs</title>
			<link>http://www.silverstripe.org/general-questions/show/10128?start=8#post321994</link>
			<description>&lt;p&gt;Is there seriously still no way to Theme the Breadcrumbs without evading to a module? (Btw: thanks)&lt;/p&gt;&lt;p&gt;(years++)++&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Customizing $Breadcrumbs | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/10128?start=8#post321994&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/10128&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 13 May 2013 09:02:23 +1200</pubDate>
			<dc:creator>Apophis</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/10128?start=8#post321994</guid>
		</item>
		
		<item>
			<title>Re: SS 3.1.0-beta2 and time values</title>
			<link>http://www.silverstripe.org/general-questions/show/23717#post321991</link>
			<description>&lt;p&gt;Have you tried beta3 to see if you still have the problem?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: SS 3.1.0-beta2 and time values | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23717#post321991&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23717&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 13 May 2013 08:17:51 +1200</pubDate>
			<dc:creator>simon_w</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23717#post321991</guid>
		</item>
		
		<item>
			<title>Simple Booking Module WIP</title>
			<link>http://www.silverstripe.org/general-questions/show/23721</link>
			<description>&lt;p&gt;Hi I am trying to learn php and the new SS3, and I am trying to create a simple booking module for me.&lt;/p&gt;&lt;p&gt;code so far.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;EventsHolder.php&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;/p&gt;&lt;p&gt;class EventsHolderPage extends Page {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $db = 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;public static $has_many = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &amp;nbsp;&amp;nbsp;&amp;nbsp;'Events' =&amp;gt; 'Event'&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 static $allowed_children = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Event'&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 static $icon = &quot;images/calendar-file.gif&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;class EventsHolderPage_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Event.php&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;?php&lt;/p&gt;&lt;p&gt;  class Event extends Page { &lt;/p&gt;&lt;p&gt;public static $db = array(&lt;br /&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp;'Date' =&amp;gt; 'Date'&lt;br /&gt;  );&lt;/p&gt;&lt;p&gt;public static $has_many = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'TimeSlots' =&amp;gt; 'TimeSlot',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Bookings' =&amp;gt; 'Bookings'&lt;br /&gt;);&lt;/p&gt;&lt;p&gt;public static $has_one = array(&lt;br /&gt;'EventsHolder' =&amp;gt; 'EventsHolder'&lt;br /&gt;);&lt;/p&gt;&lt;p&gt;public static $icon = &quot;images/event-file.gif&quot;;&lt;/p&gt;&lt;p&gt;function getCMSFields() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = parent::getCMSFields();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Main', $dateField = new DateField('Date', 'Date For Event'), 'Content');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$dateField-&amp;gt;setConfig('showcalendar', true);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Main', $dateField, 'Content');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$timeslotTableConfig = GridFieldConfig_RecordEditor::create();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$timeslotTableConfig-&amp;gt;getComponentByType('GridFieldDataColumns')-&amp;gt;setDisplayFields(array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    'SlotName' =&amp;gt; 'Slot Time(s)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Places' =&amp;gt; 'Places In Event',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$timeslotTable = new GridField('TimeSlots','TimeSlots in Event',$this-&amp;gt;TimeSlots(), $timeslotTableConfig);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Main',$timeslotTable);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $fields;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;class Event_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;TimeSlot.php&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;/p&gt;&lt;p&gt;  class TimeSlot extends DataObject { &lt;/p&gt;&lt;p&gt;  public static $db = array(&lt;br /&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp;'SlotID'=&amp;gt;'Int',&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'SlotName'=&amp;gt;'Varchar(255)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Places' =&amp;gt; 'Int'&lt;br /&gt;  );&lt;/p&gt;&lt;p&gt;  public static $has_one = array(&lt;br /&gt;'Event' =&amp;gt; 'Event'&lt;br /&gt;  );&lt;/p&gt;&lt;p&gt;public static $has_many = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Bookings' =&amp;gt; 'Booking'&lt;br /&gt;);&lt;/p&gt;&lt;p&gt;public function getCMSFields() {&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = parent::getCMSFields();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;removeFieldFromTab(&quot;Root.Main&quot;,&quot;EventID&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;removeFieldFromTab(&quot;Root.Main&quot;,&quot;SlotID&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;$bookingsTableConfig = GridFieldConfig_RecordViewer::create();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    $bookingsTableConfig-&amp;gt;getComponentByType('GridFieldDataColumns')-&amp;gt;setDisplayFields(array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;        'Name' =&amp;gt; 'Name',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Email' =&amp;gt; 'Email',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    ));   &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    $bookingsTable = new GridField(&quot;Bookings&quot;,&quot;Bookings in Event Time Slot&quot;,$this-&amp;gt;Bookings(), $bookingsTableConfig);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    $fields-&amp;gt;addFieldsToTab(&quot;Root.Main&quot;, $bookingsTable, $timeslotTable);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $fields;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;  }&lt;/p&gt;&lt;p&gt;public function Availability() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ($this-&amp;gt;Places &amp;lt; 1) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return &quot;Unavailable&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;} else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return &quot;Available&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Booking.php&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;/p&gt;&lt;p&gt;  class Booking extends DataObject { &lt;/p&gt;&lt;p&gt;  public static $db = array(&lt;br /&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp;'BookingID'=&amp;gt;'Int',&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Name'=&amp;gt;'Varchar(255)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Email'=&amp;gt;'Varchar(255)'&lt;br /&gt;  );&lt;/p&gt;&lt;p&gt;  public static $has_one = array(&lt;br /&gt;'TimeSlot' =&amp;gt; 'TimeSlot'&lt;br /&gt;  );&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;So was just thinking if you guys think im going in the right direction with it no experience with php, firstly a problem i have, i have added the  the bookings gridfield to the timeslot gridfield entry pages instead of in another tab but there has been created an empty tab called bookings and im not sure why?.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Simple Booking Module WIP | &lt;a href=&quot;http://www.silverstripe.org/general-questions/show/23721&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/general-questions/reply/23721&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 13 May 2013 08:16:53 +1200</pubDate>
			<dc:creator>FireMe!</dc:creator>
			<guid>http://www.silverstripe.org/general-questions/show/23721</guid>
		</item>
		

	</channel>
</rss>