<?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: adding image slideshow - one tiny question please</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19932#post314140</link>
			<description>&lt;p&gt;Put &amp;lt;% include Slideshow %&amp;gt; in the Page.ss, under $Content, in /themes/mytheme/templates/Layout/Page.ss.  I added the max skitter code in the same place and now that is working too. &lt;/p&gt;&lt;p&gt;Yes thank you novaweb, that worked immediately! Choice!.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: adding image slideshow - one tiny question please | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19932#post314140&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19932&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 24 May 2012 19:15:10 +1200</pubDate>
			<dc:creator>webdeb</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19932#post314140</guid>
		</item>
		
		<item>
			<title>Re: adding image slideshow - one tiny question please</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19932#post314139</link>
			<description>&lt;p&gt;Hi Webdeb,&lt;/p&gt;&lt;p&gt;I'm going to be dead honest here, It's probably not realistic people are able to help you at this stage as often we need specific details in order to debug problems. That being said:&lt;/p&gt;&lt;p&gt;Assuming you've installed SilverStripe and then the module, you'll need to do the following.&lt;/p&gt;&lt;p&gt;I am going to assume you are using &quot;gallery&quot; for argument's sake. Inside gallery/code will be GalleryPage.php. This will contain your Slideshow function.&lt;/p&gt;&lt;p&gt;Your problem is, your website knows about the gallery being installed, but your theme has no idea what a gallery page is! In order for SilverStripe modules to work correctly, you need to have matching Templates for each page type. eg:&lt;/p&gt;&lt;p&gt;GalleryPage.php uses template /themes/mytheme/templates/Layout/GalleryPage.ss&lt;br /&gt;GalleryPageHolder.php uses template /themes/mytheme/templates/Layout/GalleryPageHolder.ss&lt;/p&gt;&lt;p&gt;By default, SilverStripe tries to cascade the page using the default /themes/mytheme/templates/Layout/Page.ss template. You could try putting &amp;lt;% include Slideshow %&amp;gt; under $Content, that may work.&lt;/p&gt;&lt;p&gt;SilverStripe is an open source, community driven effort. Yes sometimes it lacks documentation in some areas, however the areas lacking documentation are usually from community submitted modules authored by people such as ourselves.&lt;/p&gt;&lt;p&gt;Perhaps if you do get the Slideshow working, your next step would be to write a short instruction manual on the module, including what i've written above, then committing it back to the project so no-one runs in to this issue for this particular module in the future. That's all part of the open source process.&lt;/p&gt;&lt;p&gt;Let me know how you get on.&lt;/p&gt;&lt;p&gt;Nova&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: adding image slideshow - one tiny question please | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19932#post314139&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19932&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 24 May 2012 17:12:37 +1200</pubDate>
			<dc:creator>novaweb</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19932#post314139</guid>
		</item>
		
		<item>
			<title>adding image slideshow - one tiny question please</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19932</link>
			<description>&lt;p&gt;Include the slideshow in your templates by adding &amp;lt;% include Slideshow %&amp;gt;????? where????? do you mean in themes folder in Page.ss? if so, why not say so?&lt;/p&gt;&lt;p&gt;Can someone please tell me which folder and which file requires this added, and where exactly. I had the same problem with the max skitter slide show, I went to the trouble of installing and loading but no pics were showing, so I went back and discovered this instruction which I didnt know where to put the code. So had to abandon that install too. I am using cloudy theme, it is not a template, so which template file??&lt;br /&gt;please help!!  I have spent 3 weeks installing silverstripe, and keep coming to a dead stop with over half the modules, due to insufficient instructions.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: adding image slideshow - one tiny question please | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19932&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19932&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 24 May 2012 16:41:28 +1200</pubDate>
			<dc:creator>webdeb</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19932</guid>
		</item>
		
		<item>
			<title>Intercepting popup (GreyBox) close events?</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19925</link>
			<description>&lt;p&gt;Does anyone know of a method of intercepting the popup close event and cancelling it if need be?&lt;/p&gt;&lt;p&gt;I'd like to run a &quot;has the form been modified&quot; type check when the user clicks on the popup window's close button. Basically, I'd like to warn the user if he/she might be about to lose some work. Is this possible with the GreyBox javascript module? I've tried simply binding a handler to the GB_close element, which doesn't work. That's not too surprising, as GreyBox.jx has installed its own handler. I haven't found any mention of a hook that could be used in the GreyBox documentation, but am hoping that there still is a method of doing this. &lt;/p&gt;&lt;p&gt;Hans&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Intercepting popup (GreyBox) close events? | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19925&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19925&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 23 May 2012 21:30:22 +1200</pubDate>
			<dc:creator>HansR</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19925</guid>
		</item>
		
		<item>
			<title>Re: allowing onclick with HtmlEditorConfig</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19896#post314121</link>
			<description>&lt;p&gt;Anyone? Surely this is quite a common thing and I'm guessing a very easy fix... I just need t allow onclicks for a tags via the TintMCE html window...&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: allowing onclick with HtmlEditorConfig | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19896#post314121&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19896&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 23 May 2012 16:55:32 +1200</pubDate>
			<dc:creator>datack</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19896#post314121</guid>
		</item>
		
		<item>
			<title>creating a Search query</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19920</link>
			<description>&lt;p&gt;Hi&lt;br /&gt;I have just installed my first silverstripe on localhost test site and have installed data object manager too, but I dont yet know if its needed, in creating a specific site search query based on two variables. it is going to be for a property let site (holiday baches) and I assume I only have to create content pages as html tables, to list bach number#, price per night, number of bedrooms, number of bathrooms, and location.&lt;br /&gt;I will be creating a sub list for properties that fall under headings: studio,one bedroom, two, three etc, and each one on list I will hyperlink to the full details page of each property.&lt;br /&gt;Then, I want to create a search query on left column, that works on search by budget (price per night) and number of bedrooms. How do I do that, is there a tutorial for this kind of thing? I need to have a shortlist that is easily hyperlinked, so viewers can click on the full description page.&lt;/p&gt;&lt;p&gt;Setting up properly: So should I just go ahead and create my listings just using ordinary html tables, and headings, and this ground work will make all 50 properties searchable via a query? Or are there other rules which I should follow when creating my lists.&lt;/p&gt;&lt;p&gt;If the search query is not something easily created is there someone that can quote me a price to do this for me, if I lay out all the content?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: creating a Search query | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19920&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19920&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 23 May 2012 13:01:57 +1200</pubDate>
			<dc:creator>webdeb</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19920</guid>
		</item>
		
		<item>
			<title>DataObject::get() on custom class</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19917</link>
			<description>&lt;p&gt;Hey guys,&lt;/p&gt;&lt;p&gt;We've created a class which extends page called DetailPropertyPage. It just has loads of extra frields and some one-to-many relationships to Images and DataObjects.&lt;/p&gt;&lt;p&gt;I'm writting a custom search function at the moment to return matching DataObjects.&lt;/p&gt;&lt;p&gt;Here is my code:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$properties = DataObject::get('DetailPropertyPage', $queryString, '`DetailPropertyPage`.`Price` ASC', '', '0, 30');&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I know that $queryString is correct because if I paste it into phpMyAdmin then I get results but it always turns up NULL in SilverStripe. Am I using the wrong caller class?&lt;/p&gt;&lt;p&gt;Just in case it is useful, heres the typical contents for $queryString:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;`DetailPropertyPage`.`Status`='S' and `DetailPropertyPage`.`PropertyType`='Terraced' and `DetailPropertyPage`.`Bedrooms`&amp;gt;=1 and `DetailPropertyPage`.`Price`&amp;gt;=50000 and `DetailPropertyPage`.`Price`&amp;lt;=150000&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Robbie&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DataObject::get() on custom class | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19917&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19917&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 23 May 2012 01:36:36 +1200</pubDate>
			<dc:creator>nekranox</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19917</guid>
		</item>
		
		<item>
			<title>sort subpages case insensitive</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19916</link>
			<description>&lt;p&gt;Hi,&lt;br /&gt;could it be that the &quot;sort sub-pages&quot; option, that appears on right click on a parent-page, sorts case sensitive?&lt;/p&gt;&lt;p&gt;I have pages with upper and lowercase initials and it sorts with uppercase first:&lt;br /&gt;like so:&lt;/p&gt;&lt;p&gt;A page&lt;br /&gt;B page&lt;br /&gt;C page&lt;br /&gt;a page&lt;br /&gt;b page&lt;br /&gt;c page&lt;br /&gt;Ö page&lt;/p&gt;&lt;p&gt;How can i make it sort case insensitive like:&lt;/p&gt;&lt;p&gt;A page&lt;br /&gt;a page&lt;br /&gt;B page&lt;br /&gt;b page&lt;br /&gt;...&lt;/p&gt;&lt;p&gt;Any hint appreciated!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: sort subpages case insensitive | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19916&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19916&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 22 May 2012 21:17:05 +1200</pubDate>
			<dc:creator>ivo</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19916</guid>
		</item>
		
		<item>
			<title>Add Date Picker Field to Reports</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19915</link>
			<description>&lt;p&gt;Hi there&lt;/p&gt;&lt;p&gt;I am building a custom report in the CMS and cannot get a date picker calendar to appear. The code I am using to insert this on the report is:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$DateField = new Datefield('StartDate','Start Date');&lt;br /&gt;$DateField-&amp;gt;setConfig('showcalendar', true); &lt;br /&gt;$DateField-&amp;gt;setConfig('dateformat', 'YYYY-MM-dd');&lt;/p&gt;&lt;p&gt;$params-&amp;gt;push($DateField);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I then reference the $params field as follows:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$Records = DataObject::get(&quot;Member&quot;, &quot;Created between '&quot; . $params['StartDate'] .&quot;' and '&quot; . $params['EndDate'] .&quot;'&quot;, &quot;Created DESC&quot;, Null);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;The field is inserted into the report but just as a text field.&lt;/p&gt;&lt;p&gt;I can get the date picker working using this code if I add the code to a content page and add the field to a tab but not on the Reports page.&lt;/p&gt;&lt;p&gt;Any help with this would be much appreciated.&lt;/p&gt;&lt;p&gt;P.S. this is my first post and I am loving SilverStripe...&lt;/p&gt;&lt;p&gt;Peter&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Add Date Picker Field to Reports | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19915&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19915&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 22 May 2012 17:24:59 +1200</pubDate>
			<dc:creator>radialgraphics</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19915</guid>
		</item>
		
		<item>
			<title>Re: allowing onclick with HtmlEditorConfig</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19896#post314095</link>
			<description>&lt;p&gt;Anyone got any ideas?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: allowing onclick with HtmlEditorConfig | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19896#post314095&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19896&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 22 May 2012 14:25:45 +1200</pubDate>
			<dc:creator>datack</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19896#post314095</guid>
		</item>
		
		<item>
			<title>Re: Simple SQL question</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19902#post314051</link>
			<description>&lt;p&gt;There happens to be a comma after your ORDERBY which shouldn't be there. Also, put the WHERE before the order by..&lt;/p&gt;&lt;p&gt;SELECT [..] FROM [..] WHERE [..] ORDERBY [..]&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Simple SQL question | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19902#post314051&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19902&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sun, 20 May 2012 11:49:09 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19902#post314051</guid>
		</item>
		
		<item>
			<title>Re: CMS Batch Actions: Translate / Translate and publish</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/7318#post314045</link>
			<description>&lt;p&gt;This is a brilliant addition. Thanks for posting. It's not in SS2.4.7 so here's hoping it gets added to SS3 as a feature.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: CMS Batch Actions: Translate / Translate and publish | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/7318#post314045&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/7318&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 19 May 2012 20:36:38 +1200</pubDate>
			<dc:creator>Gelert</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/7318#post314045</guid>
		</item>
		
		<item>
			<title>Re: Simple SQL question</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19902#post314041</link>
			<description>&lt;p&gt;Thanks.&lt;/p&gt;&lt;p&gt;The first query works to return unique months and years - it correctly lists all of the unique month and year values from all of the Posts in the database.&lt;/p&gt;&lt;p&gt;The part that's not working is filtering by ParentID, and it seems like it's a syntax problem. Here's the error from SilverStripe:&lt;/p&gt;&lt;p&gt;[User Error] Couldn't run query: SELECT DISTINCT DATE_FORMAT(`Post`.`Date`, '%M') AS `Month`, DATE_FORMAT(`Post`.`Date`, '%Y') AS `Year` FROM `Post` ORDER BY `Post`.`Date` DESC, WHERE ParentID = '8' You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ParentID = '8'' at line 1&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Simple SQL question | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19902#post314041&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19902&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 19 May 2012 12:00:13 +1200</pubDate>
			<dc:creator>thatboyneave</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19902#post314041</guid>
		</item>
		
		<item>
			<title>Re: Simple SQL question</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19902#post314040</link>
			<description>&lt;p&gt;Do you, by any chance, have a complete non-php-generated version of that query? That would make it easier.&lt;/p&gt;&lt;p&gt;Basically, DATE_FORMAT() AS Month won't work in any way at first. it should simply be &quot;MONTH(`DateField_Here`)&quot; If I'm not mistaken, same goes for the year.&lt;/p&gt;&lt;p&gt;You can't sort by Post.Date, if you use the AS feature, you want &quot;SORT `Year`, `Month` DESC&quot; method. Since you're disassembling the datefield, and trying to still address it as the original date-field, which is impossible, because you don't have a field &quot;Date&quot; in your query, you can't do that.&lt;/p&gt;&lt;p&gt;You are calling things, then sorting by it's originator. Considering the time I post this, it's just probably a small pointer to where it's going wrong.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Simple SQL question | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19902#post314040&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19902&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 19 May 2012 11:45:08 +1200</pubDate>
			<dc:creator>Sphere</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19902#post314040</guid>
		</item>
		
		<item>
			<title>Simple SQL question</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19902</link>
			<description>&lt;p&gt;Here's a SQL query that selects all of the unique month and year values from every instance of the class Post, which has a property, Date:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$months = DB::query(&quot;SELECT DISTINCT DATE_FORMAT(`Post`.`Date`, '%M') AS `Month`, DATE_FORMAT(`Post`.`Date`, '%Y') AS `Year` FROM `Post` ORDER BY `Post`.`Date` DESC&quot;);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I’d like to refine this query to include only Posts that are children of the Page running the query. Something like the following (except this doesn't actually work):&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$months = DB::query(&quot;SELECT DISTINCT DATE_FORMAT(`Post`.`Date`, '%M') AS `Month`, DATE_FORMAT(`Post`.`Date`, '%Y') AS `Year` FROM `Post` ORDER BY `Post`.`Date` DESC, WHERE parentID = '&quot;. $this-&amp;gt;ID . &quot;' &quot;);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;What's the correct syntax?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Simple SQL question | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19902&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19902&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 19 May 2012 11:37:49 +1200</pubDate>
			<dc:creator>thatboyneave</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19902</guid>
		</item>
		
		<item>
			<title>Re: Disable Image/File &#39;Upload from your computer&#39; option</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/5264#post314029</link>
			<description>&lt;p&gt;I would like to do the opposite: &lt;/p&gt;&lt;p&gt;I would like to force a user to upload a file for different Product Object, and prevent user to link the new Product to a file already in filestore. I did this because I would like to remove the file when the Product is removed without affecting other products. &lt;/p&gt;&lt;p&gt;Maintaining the filestore is a concern for me when there are thousands of them in the store. &lt;/p&gt;&lt;p&gt;I therefore would like to know how to disable the 'From File Store' option.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Disable Image/File &amp;#39;Upload from your computer&amp;#39; option | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/5264#post314029&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/5264&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 19 May 2012 00:07:57 +1200</pubDate>
			<dc:creator>BenWu</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/5264#post314029</guid>
		</item>
		
		<item>
			<title>allowing onclick with HtmlEditorConfig</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19896</link>
			<description>&lt;p&gt;Hi guys,&lt;/p&gt;&lt;p&gt;I'm trying to allow the ability to add in an onclick for A tags that are edited in the TinyMCE editor in SS 2.4.7. I've been searching for hours and there is quite a bit of info on this out there but it seems to be either old or isn't working quite like I expect.&lt;/p&gt;&lt;p&gt;I'm trying to set in my mysite/_config.php a complete new list of 'valid_elements' so that I can control exactly what can be put into the editor. Essentially I wanted to add in iframe and scripts, and then add a few extra bits to some of the existing allowed elements to allow onclick=&quot;&quot; etc on a tags and style=&quot;&quot; etc on images.&lt;/p&gt;&lt;p&gt;I essentially got the full xhtml list from the TinyMCE site and then cut it back to the 'usual' HTML tags my client might use.&lt;/p&gt;&lt;p&gt;So this is what I have in my config:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;//*******************&lt;br /&gt;HtmlEditorConfig::get('cms')-&amp;gt;setOption('valid_elements',&lt;br /&gt;'a[class|coords|href|id|name|onblur|onclick|ondblclick|onfocus|onkeydown|&lt;br /&gt;onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|&lt;br /&gt;onmouseup|rel|shape&amp;lt;circle?default?poly?rect|style|tabindex|title|target|type],&lt;br /&gt;area[accesskey|alt|class|coords|href|id|onblur|onclick|ondblclick|onfocus|&lt;br /&gt;onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|&lt;br /&gt;onmouseover|onmouseup|shape&amp;lt;circle?default?poly?rect|style|tabindex|title|&lt;br /&gt;target],blockquote[class|id|style|title],&lt;br /&gt;br[class|clear&amp;lt;all?left?none?right|id|style|title],&lt;/p&gt;&lt;p&gt;... (some items removed so it actually shows in this forum) ...&lt;/p&gt;&lt;p&gt;,iframe&lt;div&gt;,&lt;br /&gt;img&lt;div&gt;,&lt;/p&gt;&lt;p&gt;... (some items removed so it actually shows in this forum) ...&lt;/p&gt;&lt;p&gt;,tt[class|id|style|title],ul[class|compact&amp;lt;compact|id|style|title|type]');&lt;br /&gt;//*******************&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;The 'new' tags such as iframe seem to work fine, but I still can't put in an onclick=&quot;&quot; on the a tag nor style=&quot;&quot; on the image tag.&lt;/p&gt;&lt;p&gt;Any ideas people? Am I putting this in the wrong place? Is there something else I need to do?&lt;/p&gt;&lt;p&gt;Seeing as the forum window messes up the items I've attached the entire command as a txt file.&lt;/p&gt;&lt;p&gt;Cheers,&lt;br /&gt;Duncan&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: allowing onclick with HtmlEditorConfig | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19896&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19896&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 18 May 2012 19:15:36 +1200</pubDate>
			<dc:creator>datack</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19896</guid>
		</item>
		
		<item>
			<title>Re: [Solved] Populating a DropDownField with Children</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19885#post314003</link>
			<description>&lt;p&gt;That works perfectly. Will, you are a legend. Thank you.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved] Populating a DropDownField with Children | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19885#post314003&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19885&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 16 May 2012 20:43:43 +1200</pubDate>
			<dc:creator>thatboyneave</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19885#post314003</guid>
		</item>
		
		<item>
			<title>Re: [Solved] Populating a DropDownField with Children</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19885#post314002</link>
			<description>&lt;p&gt;I thought it would have done this by default but you may need to call map() (&lt;a href=&quot;http://API.silverstripe.org/2.3/sapphire/model/DataObjectSet.html#methodmap&quot; rel=&quot;nofollow&quot;&gt;http://API.silverstripe.org/2.3/sapphire/model/DataObjectSet.html#methodmap&lt;/a&gt;)&lt;/p&gt;&lt;p&gt;$children = DataObject::get(&quot;Post&quot;, &quot;ParentID = '&quot;. $this-&amp;gt;ID .&quot;'&quot;);&lt;br /&gt;if($children) $children = $children-&amp;gt;map(&quot;ID&quot;, &quot;Title&quot;);&lt;/p&gt;&lt;p&gt;$featured_field = new DropDownField('FeaturedPostID', 'FeaturedPost', $children); &lt;/p&gt;&lt;p&gt;&lt;strong&gt;How do you bind the DropDownField to a particular $has_one relationship?&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Well the first argument to DropDownFIeld 'FeaturedPostID' should map to your $has_one = array('FeaturedPost'). Have you done a dev/build?flush=1 then reloaded the admin?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved] Populating a DropDownField with Children | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19885#post314002&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19885&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 16 May 2012 20:40:52 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19885#post314002</guid>
		</item>
		
		<item>
			<title>Re: [Solved] Populating a DropDownField with Children</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19885#post314001</link>
			<description>&lt;p&gt;Thanks for the reply Will. &lt;/p&gt;&lt;p&gt;How do I also get the Post titles to be listed in the DropDownField? Right now it displays:&lt;br /&gt;Post&lt;br /&gt;Post&lt;br /&gt;Post&lt;br /&gt;etc...&lt;/p&gt;&lt;p&gt;And it doesn’t seem to save a particular Post as the FeaturedPost when you publish the page. How do you bind the DropDownField to a particular $has_one relationship?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved] Populating a DropDownField with Children | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19885#post314001&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19885&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 16 May 2012 20:31:05 +1200</pubDate>
			<dc:creator>thatboyneave</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19885#post314001</guid>
		</item>
		
		<item>
			<title>Re: DataObject -&gt; Unable to Get Field Value?</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19840#post314000</link>
			<description>&lt;p&gt;&lt;em&gt;getCMSFields_forPopup&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Are you sure that is called on an object populated with data?  I'd suggest that an abstact object is created, that method called in order to get the fieldset.  That means you are no in the object you think you are.  Why not use the getCMSFields method to manipulate the fields?  And while you are doing that you needn't create the fields as it will be scafolded for you... you're not using DOM are you?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DataObject -&amp;gt; Unable to Get Field Value? | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19840#post314000&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19840&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 16 May 2012 20:26:31 +1200</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19840#post314000</guid>
		</item>
		
		<item>
			<title>Re: [Solved] Populating a DropDownField with Children</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19885#post313999</link>
			<description>&lt;p&gt;With the has_one you need to append ID to the field name:&lt;/p&gt;&lt;p&gt;$featured_field = new DropDownField('FeaturedPostID', 'FeaturedPost', $children); &lt;/p&gt;&lt;p&gt;Though $children will be a list of pages, so perhaps you want to ensure you only get Post types in $children.&lt;/p&gt;&lt;p&gt;$children = DataObject::get(&quot;Post&quot;, &quot;ParentID = '&quot;. $this-&amp;gt;ID .&quot;'&quot;);&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved] Populating a DropDownField with Children | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19885#post313999&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19885&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 16 May 2012 20:14:38 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19885#post313999</guid>
		</item>
		
		<item>
			<title>[Solved] Populating a DropDownField with Children</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19885</link>
			<description>&lt;p&gt;For a blog/magazine style site with Posts organized into Categories. &lt;/p&gt;&lt;p&gt;Categories may only contain Posts as child pages.&lt;/p&gt;&lt;p&gt;Each Category would have one featured Post at any one time, selectable in the CMS. &lt;/p&gt;&lt;p&gt;So, in the Category class I have this:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;static $allowed_children = array('Post');&lt;br /&gt;static $has_one = array(&lt;br /&gt;    'FeaturedPost' =&amp;gt; 'Post'&lt;br /&gt;);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;In the admin for a Category, I want to populate a dropdown with all of the Category's child Posts, and save the dropdown selection into FeaturedPost. Right now in getCMSFields with Category, I have this:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public function getCMSFields()&lt;br /&gt;{&lt;br /&gt;    $fields = parent::getCMSFields();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;    $children = $this-&amp;gt;Children();&lt;br /&gt;    $featured_field = new DropDownField('FeaturedPost', 'FeaturedPost', $children);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;    $fields-&amp;gt;addFieldToTab('Root.Content.Main', $featured_field);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;    return $fields;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;The DropDownField populates with the right number of Posts, but it doesn't save into the FeaturedPost relationship, or display the titles of the Posts. &lt;/p&gt;&lt;p&gt;Any help? Thanks in advance.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved] Populating a DropDownField with Children | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19885&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19885&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 16 May 2012 19:56:35 +1200</pubDate>
			<dc:creator>thatboyneave</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19885</guid>
		</item>
		
		<item>
			<title>DataObject -&gt; Unable to Get Field Value?</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19840</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Experiencing a weirdsie on something I think I must have done a thousand times.  I have $db field called &quot;SectorName&quot; in a DataObject which is populated in every case but inside the class $this-&amp;gt;SectorName is returning empty.  Code:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class Sector extends DataObject {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $db = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;SectorName&quot; =&amp;gt; &quot;Text&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;SectorDescription&quot; =&amp;gt; &quot;HTMLText&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;ClientsToShow&quot; =&amp;gt; &quot;Text&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;SectorHolder&quot; =&amp;gt; &quot;SectorHolder&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $field_names = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;SectorName&quot; =&amp;gt; &quot;Name&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;SectorDescription&quot; =&amp;gt; &quot;Description&quot;&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;static $can_be_root = false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $default_parent = 'SectorHolder';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getCMSFields_forPopup() {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = new FieldSet();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;push(new TextField(&quot;SectorName&quot;, &quot;Name&quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;push(new SimpleTinyMCEField(&quot;SectorDescription&quot;, &quot;Description&quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;push(new ListboxField(&quot;ClientsToShow&quot;, &quot;Clients to Show in &quot;.$this-&amp;gt;SectorName, DataObject::get(&quot;Client&quot;,&quot;Sectors LIKE '%&quot;.$this-&amp;gt;SectorName.&quot;%'&quot;, &quot;Title ASC&quot;)-&amp;gt;toDropdownMap('ID','Title','(Select one or more options)',true), &quot;&quot;, &quot;5&quot;, true));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $fields;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Why?  I am INSIDE the dataobject, why would this not have a value?&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;Garrett&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DataObject -&amp;gt; Unable to Get Field Value? | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19840&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19840&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 08 May 2012 07:31:51 +1200</pubDate>
			<dc:creator>Garrett</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19840</guid>
		</item>
		
		<item>
			<title>Re: [Solved]Display data from dataobject in literalfield template page</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19817#post313779</link>
			<description>&lt;p&gt;Hi All &lt;/p&gt;&lt;p&gt;After A long day of searching and pondering and sore eyes i managed to work this out&lt;/p&gt;&lt;p&gt;Here is what i have done.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;mysite/code/DataObject.php&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function getData()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;   if($ViewPage = DataObject::get('DataObject'))  &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;       {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  return $this -&amp;gt; customise(new ArrayData(array())) -&amp;gt; renderWith('ViewPage'); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;       }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  }&lt;/p&gt;&lt;p&gt;// CMS fields&lt;/p&gt;&lt;p&gt;                $fields-&amp;gt;addFieldToTab('Root.TabName', new LiteralField('Data View', $this-&amp;gt;getData()));&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;This Will Render a Page from a Template into a tab in your dataobject in the cms and populate it with the data from that object.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The template needs to be put into mysite/templates folder and if you create an includes folder the includes should work aswell.&lt;/p&gt;&lt;p&gt;Hope this helps someone in the future&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved]Display data from dataobject in literalfield template page | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19817#post313779&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19817&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 05 May 2012 23:36:17 +1200</pubDate>
			<dc:creator>voodoochile</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19817#post313779</guid>
		</item>
		
		<item>
			<title>Re: Get the country name from the 2 digit country code</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19802#post313745</link>
			<description>&lt;p&gt;Geoip::countryCode2name() might be what you want.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://api.silverstripe.org/2.4/sapphire/misc/Geoip.html#methodcountryCode2name&quot; rel=&quot;nofollow&quot;&gt;http://api.silverstripe.org/2.4/sapphire/misc/Geoip.html#methodcountryCode2name&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Get the country name from the 2 digit country code | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19802#post313745&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19802&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 04 May 2012 18:40:52 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19802#post313745</guid>
		</item>
		
		<item>
			<title>[Solved]Display data from dataobject in literalfield template page</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19817</link>
			<description>&lt;p&gt;Hi All&lt;/p&gt;&lt;p&gt;I need a little help please.&lt;br /&gt;i am trying to display a template page in a tab in the cms and populate it with data from a dataobject,&lt;br /&gt;so far ...&lt;br /&gt;i have created the dataobject, and using modeladmin have setup the tabs to fill out the formdata, and have added a tab with a literalfield that calls a template to display the result. it seems to ignore the control blocks and the $fielddata tags.&lt;br /&gt;and to complicate matters their are several dropdowns that get thier data from several dataobjects.&lt;/p&gt;&lt;p&gt;this page works perfectly in the frontend, however some users will only work in the cms side and need to see the finished form without having to go into the front.&lt;/p&gt;&lt;p&gt;Hope this makes sense&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved]Display data from dataobject in literalfield template page | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19817&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19817&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 04 May 2012 15:35:35 +1200</pubDate>
			<dc:creator>voodoochile</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19817</guid>
		</item>
		
		<item>
			<title>Re: running another software as addon</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19801#post313690</link>
			<description>&lt;p&gt;i figured a non critical folder would be ok,&lt;br /&gt;but the manifest exclude is really what i wanted to know.&lt;/p&gt;&lt;p&gt;Thank you so much for responding so quickly.  Your solution worked.&lt;/p&gt;&lt;p&gt;I almost everything worked ok from the start or wasn't hard to get going with some small tweaking  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: running another software as addon | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19801#post313690&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19801&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 03 May 2012 13:32:04 +1200</pubDate>
			<dc:creator>vonone</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19801#post313690</guid>
		</item>
		
		<item>
			<title>Get the country name from the 2 digit country code</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19802</link>
			<description>&lt;p&gt;Is there anyway I can easily get the country name from the 2 letter country code.&lt;/p&gt;&lt;p&gt;I am populating a dropdown from the values stored in a table for country, however these are stored as NZ, US, etc. Is there a simple way I can do this without populating a table with code/name matches and doing a join?&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;//get countries&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$countryMap = array();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$countryMap[&quot;&quot;] = &quot;ALL COUNTRIES&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$sql = new SQLQuery();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$sql-&amp;gt;select = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Country'&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;$sql-&amp;gt;from = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Member'&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;$sql-&amp;gt;where = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;Country !='' AND Country IS NOT NULL&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;$sql-&amp;gt;orderby('Country');&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$result = $sql-&amp;gt;execute();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach($result as $row){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$countryMap[$row['Country']] = $row['Country'];&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;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return new FieldSet(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new LiteralField('Countries',&quot;&amp;lt;b&amp;gt;Selected Countries:&quot;.$this-&amp;gt;MemberCountry.&quot;&amp;lt;/b&amp;gt;&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new ListboxField('MemberCountry','Country',$countryMap,'',null,true)&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;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Get the country name from the 2 digit country code | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19802&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19802&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 03 May 2012 12:50:47 +1200</pubDate>
			<dc:creator>Fraser</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19802</guid>
		</item>
		
		<item>
			<title>Re: $searchable_fields - Polulating dropdown with CountryDropdownField</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19799#post313682</link>
			<description>&lt;p&gt;OK, so I have another question about this. How do I have a blank entry to allow &quot;all countries&quot; to be searched?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: $searchable_fields - Polulating dropdown with CountryDropdownField | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19799#post313682&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19799&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 03 May 2012 11:22:51 +1200</pubDate>
			<dc:creator>Fraser</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19799#post313682</guid>
		</item>
		
		<item>
			<title>Re: running another software as addon</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19801#post313680</link>
			<description>&lt;p&gt;Hi Scott,&lt;/p&gt;&lt;p&gt;Welcome to the forums!&lt;/p&gt;&lt;p&gt;There are two ways to make sure silverstripe doesn't include the files...&lt;/p&gt;&lt;p&gt;1) do not put them in &quot;known&quot; silverstripe folder - this is one that is there in a default install or one with a _config.php in it&lt;br /&gt;2) put a file named &quot;_manifest_exclude&quot; in the folder&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: running another software as addon | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19801#post313680&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19801&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 03 May 2012 11:00:50 +1200</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19801#post313680</guid>
		</item>
		
		<item>
			<title>running another software as addon</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19801</link>
			<description>&lt;p&gt;Hi,  I am new to this.  Cheers&lt;br /&gt;I have been playing with silverstripe.  Pretty neat stuff.&lt;br /&gt;I havn't contributed anything yet because I am still learning.&lt;/p&gt;&lt;p&gt;I wanted to run an additional custom made php software.  It is a simple chat interface.&lt;br /&gt;It gets its own upgrades from the developer.  To pop the chat up it is a simple link.&lt;br /&gt;Could be placed like a dataobject but I will integrate it into the custom modified theme I am making.&lt;/p&gt;&lt;p&gt;I don't need to integrate it into the CMS as it has its own back and that is ok.&lt;br /&gt;what is the preferred directory to install it to.&lt;/p&gt;&lt;p&gt;I found a few suggestions like best to install under&lt;br /&gt;/home/public_html/assets/livechat/&lt;br /&gt;execute under &lt;a href=&quot;http://www.example.com/livechat/&quot; rel=&quot;nofollow&quot;&gt;www.example.com/livechat/&lt;/a&gt;&lt;br /&gt;or under&lt;br /&gt;/home/public_html/theme/livechat/&lt;br /&gt;execute under &lt;a href=&quot;http://www.example.com/theme/livechat/&quot; rel=&quot;nofollow&quot;&gt;www.example.com/theme/livechat/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I could use another URL but for consistency I want to use the same base URL and SSL cert as the CMS&lt;/p&gt;&lt;p&gt;The reason for my question is I don't want the file to get included in a DEV/BUILD.&lt;br /&gt;Or is there a way to install it in /chat and have silverstripe skip the folder.&lt;/p&gt;&lt;p&gt;Thanks for your help.&lt;/p&gt;&lt;p&gt;Scott&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: running another software as addon | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19801&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19801&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 03 May 2012 10:12:36 +1200</pubDate>
			<dc:creator>vonone</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19801</guid>
		</item>
		
		<item>
			<title>Re: $searchable_fields - Polulating dropdown with CountryDropdownField</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19799#post313673</link>
			<description>&lt;p&gt;Solved. It was much simpler than I thought.&lt;/p&gt;&lt;p&gt;It needed to read like this:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;.....&lt;br /&gt;'Country' =&amp;gt; array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'field' =&amp;gt; 'CountryDropdownField'&lt;br /&gt;)&lt;br /&gt;....&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: $searchable_fields - Polulating dropdown with CountryDropdownField | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19799#post313673&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19799&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 03 May 2012 09:20:52 +1200</pubDate>
			<dc:creator>Fraser</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19799#post313673</guid>
		</item>
		
		<item>
			<title>$searchable_fields - Polulating dropdown with CountryDropdownField</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19799</link>
			<description>&lt;p&gt;Firstly, I am only a couple of days into Silverstripe and OOP, having come from a purely procedural background and thrown in the deep end on a project I've been assigned to so please forgive me if I'm overlooking something very basic and/or fundamental. Also in any responses, please assume you are speaking to a 3yr old. Ha.&lt;/p&gt;&lt;p&gt;Anyway.&lt;/p&gt;&lt;p&gt;I have managed to add a drop down labelled &quot;country&quot; to my customer search in the CMS by simply adding :&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;Member::$searchable_fields = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ID' =&amp;gt; array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'field' =&amp;gt; 'NumericField',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'filter' =&amp;gt; 'ExactMatchFilter'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;), &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'FirstName', &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Surname', &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Email', &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Client', &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'City', &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Country' =&amp;gt; array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'field' =&amp;gt; 'DropdownField'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br /&gt;);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I need this to take the form of CountryDropdownField.&lt;/p&gt;&lt;p&gt;Is this possible and how do I go about this?&lt;/p&gt;&lt;p&gt;Many thanks in advance.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: $searchable_fields - Polulating dropdown with CountryDropdownField | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19799&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19799&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 03 May 2012 09:15:34 +1200</pubDate>
			<dc:creator>Fraser</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19799</guid>
		</item>
		
		<item>
			<title>Re: Upload::setAllowedExtensions() is deprecated</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/11882#post313670</link>
			<description>&lt;p&gt;ERROR [User Notice]: Upload::setAllowedExtensions() is deprecated. Please use Upload_Validator::setAllowedExtensions() instead&lt;/p&gt;&lt;p&gt;Getting same sort of error while using the following code from ssbits.com on the following URL:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.ssbits.com/tutorials/2009/embed-flash-content-using-swfobject/&quot; rel=&quot;nofollow&quot;&gt;http://www.ssbits.com/tutorials/2009/embed-flash-content-using-swfobject/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;?php&lt;br /&gt;class FlashPage extends Page&lt;br /&gt;{&lt;br /&gt;    public static $db = array(&lt;br /&gt;        'AlternateContent' =&amp;gt; 'HTMLText'&lt;br /&gt;    );&lt;/p&gt;&lt;p&gt;    public static $has_one = array(&lt;br /&gt;        'FlashFile' =&amp;gt; 'File'&lt;br /&gt;    );&lt;/p&gt;&lt;p&gt;    public function getCMSFields(){&lt;br /&gt;        $fields = parent::getCMSFields();&lt;/p&gt;&lt;p&gt;        // create a file upload field that only allows swf to be uploaded&lt;br /&gt;        $fileUpload = new FileIFrameField('FlashFile', 'Flash file (swf)');&lt;br /&gt;        $fileUpload-&amp;gt;setAllowedExtensions(array('swf'));&lt;/p&gt;&lt;p&gt;        $fields-&amp;gt;addFieldsToTab('Root.Content.Flash', array(&lt;br /&gt;            $fileUpload,&lt;br /&gt;            new HtmlEditorField('AlternateContent', 'Flash replacement text', 20)&lt;br /&gt;        ));&lt;/p&gt;&lt;p&gt;        return $fields;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;class FlashPage_Controller extends Page_Controller&lt;br /&gt;{&lt;br /&gt;}&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Upload::setAllowedExtensions() is deprecated | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/11882#post313670&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/11882&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 03 May 2012 04:05:34 +1200</pubDate>
			<dc:creator>ss-ss</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/11882#post313670</guid>
		</item>
		
		<item>
			<title>Re: jQuery image slider</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19787#post313645</link>
			<description>&lt;p&gt;Forgot to mention, you'll have to add another Requirements::javascript call to your init() function (should be the last call in init). Name the file orbit.config.jquery.js and inside it write the equivalent  of:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$(document).ready(function{&lt;br /&gt;  #FeatureContainer.orbit();&lt;br /&gt;});&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: jQuery image slider | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19787#post313645&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19787&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 02 May 2012 10:57:16 +1200</pubDate>
			<dc:creator>novaweb</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19787#post313645</guid>
		</item>
		
		<item>
			<title>Re: jQuery image slider</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19787#post313644</link>
			<description>&lt;p&gt;Hi Joel,&lt;/p&gt;&lt;p&gt;Use this &lt;a href=&quot;http://matt.zurb.s3.amazonaws.com/orbit-1.2.3.zip&quot; rel=&quot;nofollow&quot;&gt;http://matt.zurb.s3.amazonaws.com/orbit-1.2.3.zip&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Instructions here: &lt;a href=&quot;http://www.zurb.com/playground/orbit-jquery-image-slider&quot; rel=&quot;nofollow&quot;&gt;http://www.zurb.com/playground/orbit-jquery-image-slider&lt;/a&gt; (But don't click the foundation link, use the link i've supplied above)&lt;/p&gt;&lt;p&gt;You will need the following in your Page_Controller:&lt;/p&gt;&lt;p&gt;(Files downloaded, as per the following, will need to be in mysite/javascript/orbit)&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function init() {&lt;br /&gt;parent::init();&lt;br /&gt;Requirements::javascript(&quot;mysite/javascript/orbit/jquery.orbit-1.2.3.js&quot;);&lt;br /&gt;Requirements::css(&quot;mysite/javascript/orbit/orbit-1.2.3.css&quot;);&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;This will need to be in Page:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;FeatureImage1&quot; =&amp;gt; &quot;Image&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;FeatureImage2&quot; =&amp;gt; &quot;Image&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;FeatureImage3&quot; =&amp;gt; &quot;Image&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;function getCMSFields(){&lt;br /&gt;// you're going to have to read how to do this, I'm too lazy to write it outm let me know if you get stuck&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Then in Page.ss:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;div id=&quot;FeatureContainer&quot; style=&quot;width:690px;height:400px;&quot;&amp;gt;&lt;/p&gt;&lt;p&gt;    &amp;lt;% if FeatureImage1 %&amp;gt;&lt;br /&gt;        $FeatureImage1&lt;br /&gt;   &amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;p&gt;    &amp;lt;% if FeatureImage2 %&amp;gt;&lt;br /&gt;        $FeatureImage2&lt;br /&gt;   &amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;p&gt;    &amp;lt;% if FeatureImage3 %&amp;gt;&lt;br /&gt;        $FeatureImage3&lt;br /&gt;   &amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Then run dev/build?flush=1, upload images through CMS, Bingo.&lt;/p&gt;&lt;p&gt;Took me about 20 minutes to get going, holla if you get stuck.&lt;/p&gt;&lt;p&gt;Cheers,&lt;br /&gt;Nova&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: jQuery image slider | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19787#post313644&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19787&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 02 May 2012 10:53:48 +1200</pubDate>
			<dc:creator>novaweb</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19787#post313644</guid>
		</item>
		
		<item>
			<title>jQuery image slider</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19787</link>
			<description>&lt;p&gt;Hey, &lt;br /&gt;I want to put an image slider on my homepage of my website, and have found Craftyslide, but I cannot for the life of me figure out how to get it to work.. :/ I feel really bad. I could usually get things to work..&lt;/p&gt;&lt;p&gt;Anyway, if anyone could give me a hand, that would be great.  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;- Joel.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: jQuery image slider | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19787&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19787&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 01 May 2012 22:34:02 +1200</pubDate>
			<dc:creator>joelkrause</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19787</guid>
		</item>
		
		<item>
			<title>Re: Versioned Relations? Versioned has_many relation?</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19737#post313541</link>
			<description>&lt;p&gt;Hi HansR&lt;/p&gt;&lt;p&gt;I'm currently trying simpler and maybe less clean:&lt;br /&gt;My Problem is that the Information about the one-to-many-relationship is saved on the (non-versioned DataObject) Image, not the versioned Page.&lt;br /&gt;I thought the simplest solution would be to have the relation info saved on the page.&lt;br /&gt;So on the Page i created a DBField Text.&lt;br /&gt;In an onBeforeWrite function i collect the currently related Imaged, get the IDs and save them comma-separated into this field.&lt;br /&gt;Displaying the images on the fronted: a special function VersionedImages() gets the mentioned textfield, collects the Images by the saved ID list and returns a dataobject set.&lt;br /&gt;I have to see/test if it will be irritating for authors that on the backend the ImageDOM/HasManyDOM is showing something different than the frontend... we'll see...&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Versioned Relations? Versioned has_many relation? | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19737#post313541&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19737&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 25 Apr 2012 18:26:59 +1200</pubDate>
			<dc:creator>derralf</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19737#post313541</guid>
		</item>
		
		<item>
			<title>Re: Versioned Relations? Versioned has_many relation?</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19737#post313537</link>
			<description>&lt;p&gt;Replying to myself, if you want all of the objects in the has_many relationship to be completely owned and versioned based on the page, then you'll have to go through and implement the onBefore####()/onAfter####() methods for everything associated with versioning. These methods would have to perform the same action on the sub-objects. You might also need to take precautions in order to keep the version numbering the same across all objects (i.e., version n of all has_many objects correspond to version n of the page).&lt;/p&gt;&lt;p&gt;Hans&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Versioned Relations? Versioned has_many relation? | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19737#post313537&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19737&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 25 Apr 2012 16:08:33 +1200</pubDate>
			<dc:creator>HansR</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19737#post313537</guid>
		</item>
		
		<item>
			<title>Re: Versioned Relations? Versioned has_many relation?</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19737#post313534</link>
			<description>&lt;p&gt;@derralf&lt;/p&gt;&lt;p&gt;I happen to be dealing with this issue too, although I haven't found a complete solution yet. You'll find some help in &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/12832&quot; rel=&quot;nofollow&quot;&gt;this thread&lt;/a&gt;. However, this might not be a complete solution.&lt;/p&gt;&lt;p&gt;I'm uncertain about the following:&lt;br /&gt;- If I view an older version, will the has_many relation automatically pick up the old set of has_many objects belonging to that version? Or is special handling required? I'm guessing that it might just pick up the latest published set.&lt;br /&gt;- If I unpublish a page, will the has_many relation revert to the old set of has_many objects? Or will that also require special handling?&lt;br /&gt;- How do I get the page to be marked as &quot;modified&quot; (i.e., get shown in green for unpublished changes) if the has_many relation has changed (e.g., an object is modified, added or deleted)&lt;/p&gt;&lt;p&gt;EDIT: The questions above assume that you want the objects in has_many to be completely owned by the page. Whether that's what is needed or not, it would still be good to know how this would be achieved (and conversely, how to avoid it).&lt;/p&gt;&lt;p&gt;Hans&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Versioned Relations? Versioned has_many relation? | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19737#post313534&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19737&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 25 Apr 2012 13:23:07 +1200</pubDate>
			<dc:creator>HansR</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19737#post313534</guid>
		</item>
		
		<item>
			<title>Versioned Relations? Versioned has_many relation?</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19737</link>
			<description>&lt;p&gt;I'm currently working on a front end editing form&lt;br /&gt;Members can create &quot;Stories&quot; (extends Page) and save through a front end form.&lt;br /&gt;If the member is not marked as &quot;CanPlublishStory&quot; he can not publish but only write to stage (an admin has to publish after reviewing the Story).&lt;/p&gt;&lt;p&gt;Problem:&lt;br /&gt;The members can upload images that are attached to the Story (Story has_many Images).&lt;br /&gt;When a member (that can not publish) edits a Story the admin can review the TEXT before publishing the changes.&lt;br /&gt;If the member uploads new images (has_many) they are attached immediately. The admin can't review these changed images before they will be public.&lt;/p&gt;&lt;p&gt;How can i have &quot;versioned relations&quot;? (not versioned images/dataobjects).&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Versioned Relations? Versioned has_many relation? | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19737&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19737&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sun, 22 Apr 2012 12:30:13 +1200</pubDate>
			<dc:creator>derralf</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19737</guid>
		</item>
		
		<item>
			<title>Re: siteconfig dom logos</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19718#post313472</link>
			<description>&lt;p&gt;You are right - but this is normal SilverStripe behaviour, so it's not a 'DOM' thing  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt;  A control structure always iterates a set of DataObjects and within that structure the scope is that of the DataObject. &lt;/p&gt;&lt;p&gt;In this case &amp;lt;% control SiteConfig.Logos  %&amp;gt; loops all Logo objects in Logos, so within the control it's enough to just address its properties&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: siteconfig dom logos | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19718#post313472&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19718&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sun, 22 Apr 2012 07:48:46 +1200</pubDate>
			<dc:creator>martimiz</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19718#post313472</guid>
		</item>
		
		<item>
			<title>Re: Shared code base - near complete.</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/6443#post313459</link>
			<description>&lt;p&gt;Hi Rawbit,&lt;/p&gt;&lt;p&gt;Has there been any progress with this since your last post, a mere three years ago? &lt;/p&gt;&lt;p&gt;I'm looking at doing something similar, it just makes sense when running loads of sites with 80 to 90 % of basically the same code...&lt;/p&gt;&lt;p&gt;If you have a chance to share any further discoveries and solutions along these lines it would be much appreciated!&lt;/p&gt;&lt;p&gt;Best wishes&lt;br /&gt;~ Sean&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Shared code base - near complete. | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/6443#post313459&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/6443&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 21 Apr 2012 21:21:15 +1200</pubDate>
			<dc:creator>ocean</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/6443#post313459</guid>
		</item>
		
		<item>
			<title>Re: Embedding Quicktime with TinyMCE in SiStri 2.3.2</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/7880#post313443</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;old thread - but perhaps this is still a point of interest.&lt;/p&gt;&lt;p&gt;got a (hacky) workaround for this in SS 2.4.&lt;br /&gt;Well, what I have done is replacing the media fallback, which is flash, to quicktime. It's a core change, but I need it...&lt;br /&gt;There is a bug which disables an objects classid (HTML). This is required by tinymce to detect the media type.&lt;br /&gt;No one given -&amp;gt; fallback to flash...&lt;/p&gt;&lt;p&gt;You can change that behaviour by replacing the fallback 'mceItemFlash' with 'mceItemQuickTime' in sapphire/thirdparty/tinymce/plugins/media/editor_plugin_src.js (should be in line 305 and 335). There are two switch-cases to check the media type. The default has to be changed.&lt;/p&gt;&lt;p&gt;The problem is not solved by this workaround, the behaviour will change... Flash and other media than QuickTime will now be converted to QuickTime after saving once...&lt;/p&gt;&lt;p&gt;Unfortunately, I don't have time to fix this bug or get a proper solution, the workaround works for my case. I don't need flash for the project I'm working on...&lt;/p&gt;&lt;p&gt;Cheers,&lt;br /&gt;Sebastian&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Embedding Quicktime with TinyMCE in SiStri 2.3.2 | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/7880#post313443&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/7880&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 20 Apr 2012 21:46:05 +1200</pubDate>
			<dc:creator>sdiel</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/7880#post313443</guid>
		</item>
		
		<item>
			<title>Re: siteconfig dom logos</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19718#post313442</link>
			<description>&lt;p&gt;Found the solution: Seems like you have to leave out the Siteconfigbit when adressing dom-fields related to the siteconfig&lt;/p&gt;&lt;p&gt;this is the new code for the templateinclude&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;div id=&quot;logos&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control Siteconfig.Logos %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;p&amp;gt;$LogoImage&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: siteconfig dom logos | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19718#post313442&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19718&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 20 Apr 2012 21:27:28 +1200</pubDate>
			<dc:creator>Guy Van Bael</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19718#post313442</guid>
		</item>
		
		<item>
			<title>siteconfig dom logos</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19718</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I'm trying to add dom to siteconfig (ss2.4.7) that holds logo's which have to be visible on every page. All goes well.&lt;br /&gt;I created logo.php, CustomSiteConfig.php and so i can add logo's and their description to the siteconfig. To test, i added 2 of them.&lt;/p&gt;&lt;p&gt;The problem starts when i want to display the logo's in the template&lt;br /&gt;in the include file is&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;div id=&quot;logos&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control SiteConfig.Logos %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;p&amp;gt;$SiteConfig.description&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;When i display the page in the browser, i can see in the pagesource that i finds 2 records (2 times p tag). However. It doesn't display the description from the database. Tried to display the logo itself (which is the final goal) using $SiteConfig.LogoImage and $SiteConfig.LogoImage.URL, but no luck.&lt;/p&gt;&lt;p&gt;solution anyone?&lt;/p&gt;&lt;p&gt;This is the code for CustomSiteConfig.php&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;/p&gt;&lt;p&gt;class CustomSiteConfig extends DataObjectDecorator {&lt;/p&gt;&lt;p&gt;function extraStatics() {&lt;br /&gt;return array(&lt;br /&gt;'db' =&amp;gt; array(&lt;br /&gt;                'Headertext' =&amp;gt; 'HTMLText'&lt;br /&gt;            ),&lt;br /&gt;'has_many' =&amp;gt; array(&lt;br /&gt;'Logos' =&amp;gt; 'Logo'&lt;br /&gt;)&lt;br /&gt;);&lt;br /&gt;}&lt;br /&gt;public function updateCMSFields(FieldSet &amp;amp;$fields) {&lt;/p&gt;&lt;p&gt;$manager = new SiteConfig_DataObjectManager(&lt;br /&gt;$this-&amp;gt;owner,&lt;br /&gt;'Logos',&lt;br /&gt;'Logo',&lt;br /&gt;array('LogoImage' =&amp;gt; 'logo',&lt;br /&gt; 'description' =&amp;gt; 'Omschrijving'&lt;br /&gt;),&lt;br /&gt;'getCMSFields_forPopup'         &lt;br /&gt;);   &lt;br /&gt;$manager-&amp;gt;setParentClass(&quot;SiteConfig&quot;); &lt;br /&gt;$manager-&amp;gt;setSourceID($this-&amp;gt;owner-&amp;gt;ID);&lt;br /&gt;$fields-&amp;gt;addFieldToTab(&quot;Root.logos&quot;, $manager);&lt;/p&gt;&lt;p&gt;}&lt;br /&gt;}&lt;br /&gt;class SiteConfig_DataObjectManager extends DataObjectManager {&lt;br /&gt;function setSourceID($val) {&lt;br /&gt;if (is_numeric($val)) {&lt;br /&gt;$this-&amp;gt;sourceID = $val;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;function sourceID() {&lt;br /&gt;if (isset($this-&amp;gt;sourceID) &amp;amp;&amp;amp; $this-&amp;gt;sourceID !== null &amp;amp;&amp;amp; is_numeric($this-&amp;gt;sourceID)) {&lt;br /&gt;return $this-&amp;gt;sourceID;&lt;br /&gt;}&lt;br /&gt;return parent::sourceID();&lt;br /&gt;}&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;this is Logo.php&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;/p&gt;&lt;p&gt;class Logo extends DataObject &lt;br /&gt;{ &lt;br /&gt;static $db = array ( &lt;br /&gt;'description' =&amp;gt; 'Text'&lt;br /&gt;); &lt;/p&gt;&lt;p&gt;static $has_one = array ( &lt;br /&gt;   'SiteConfig' =&amp;gt; 'SiteConfig', &lt;br /&gt;   'LogoImage' =&amp;gt; 'Image' &lt;br /&gt;); &lt;/p&gt;&lt;p&gt;public function getCMSFields_forPopup() &lt;br /&gt;   { &lt;br /&gt;        return new FieldSet(&lt;br /&gt;            new TextField('description'),&lt;br /&gt;            new FileIFrameField('LogoImage')&lt;br /&gt;      ); &lt;br /&gt;   } &lt;br /&gt;}&lt;/p&gt;&lt;p&gt;?&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: siteconfig dom logos | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19718&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19718&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 20 Apr 2012 03:11:22 +1200</pubDate>
			<dc:creator>Guy Van Bael</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19718</guid>
		</item>
		
		<item>
			<title>ModelAdmin multiple Create buttons for SubClasses?</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19708</link>
			<description>&lt;p&gt;Hey All&lt;/p&gt;&lt;p&gt;In ModelAdmin, on the LHS we've got a Create button for the particular class we're administering. Is it possible to administer a particular class, and have two Create buttons, one for each of this class's SubClasses?&lt;/p&gt;&lt;p&gt;Let me know if that doesn't make sense  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;Cheers&lt;br /&gt;dizzy&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: ModelAdmin multiple Create buttons for SubClasses? | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19708&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19708&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 18 Apr 2012 15:39:52 +1200</pubDate>
			<dc:creator>dizzystuff</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19708</guid>
		</item>
		
		<item>
			<title>Re: Need more samples of Silverstripe code</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19688#post313321</link>
			<description>&lt;p&gt;And from individuals:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/ajshort&quot; rel=&quot;nofollow&quot;&gt;https://github.com/ajshort&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://github.com/nyeholt&quot; rel=&quot;nofollow&quot;&gt;https://github.com/nyeholt&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://github.com/chillu&quot; rel=&quot;nofollow&quot;&gt;https://github.com/chillu&lt;/a&gt;&lt;/p&gt;&lt;p&gt;The reciepes from the SS books are also available for you to learn from.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/xeraa/silverstripe-book&quot; rel=&quot;nofollow&quot;&gt;https://github.com/xeraa/silverstripe-book&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://github.com/chillu/silverstripe-book&quot; rel=&quot;nofollow&quot;&gt;https://github.com/chillu/silverstripe-book&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Need more samples of Silverstripe code | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19688#post313321&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19688&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 14 Apr 2012 12:02:01 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19688#post313321</guid>
		</item>
		
		<item>
			<title>Re: Need more samples of Silverstripe code</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/19688#post313320</link>
			<description>&lt;p&gt;The modules are a good start as these all use the core API's to do various things and there is a huge amount of code to learn from&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/silverstripe/&quot; rel=&quot;nofollow&quot;&gt;https://github.com/silverstripe/&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://github.com/silverstripe-labs/&quot; rel=&quot;nofollow&quot;&gt;https://github.com/silverstripe-labs/&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Need more samples of Silverstripe code | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/19688#post313320&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/19688&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 14 Apr 2012 11:57:40 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/19688#post313320</guid>
		</item>
		

	</channel>
</rss>
