<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Forum posts to 'Customising the CMS'</title>
		<link>http://www.silverstripe.org/customising-the-cms/rss</link>
		<atom:link href="http://www.silverstripe.org/customising-the-cms/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>To Decorate or Subclass Member for ModelAdmin requirement - pls help! </title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281347#post281347</link>
			<description>&lt;p&gt;Hey SSers&lt;/p&gt;&lt;p&gt;I've read and tried a bunch of docs and posts (both forums and dev list) about extending Members, and see that the most suggested/preferable solution is to use DataObjectDecorator on Member rather than to SubClass it.. for good reason.&lt;/p&gt;&lt;p&gt;However, I need to do X, and I can see how that will work via subclassing but not sure if it can be done with the decorator.&lt;/p&gt;&lt;p&gt;The site is for an educational company, with system users, newsletter subscribers, and Students. I need to manage the student members in their own ModelAdmin and don't want the system/newsletter members to appear. Can I limit the scope of the ModelAdmin instance in this way?&lt;/p&gt;&lt;p&gt;Also, there is a big set of fields added to Member for Students, I really don't want these fields appearing in Member form for non-Students.&lt;/p&gt;&lt;p&gt;Currently, I've decorated Members with the extra stuff for students, but now realised that with Newsletter Subscribers being entered as members belonging to newsletter groups, that these members (possibly random public users) would appear in the Members Admin I've created. I'd be happy to decorate in a &quot;member-type&quot; field that specifies &quot;Student&quot;, but I couldn't figure out how to restrict the ModelAdmin to this type.&lt;/p&gt;&lt;p&gt;Subclassing I imagine would give me what I'm after (i think), but comes with the cons listed elsewhere. Has anyone run into this before? Any suggestions?&lt;/p&gt;&lt;p&gt;Sorry this probably seems a bit scatty, my head is going crazy trying to figure this out! The permissions/groups/roles for these students (differing programmes, ranks, stages) is quite complicated too! I'm getting there but help/advice/suggestions would be tres appreciated&lt;/p&gt;&lt;p&gt;dizzy&lt;/p&gt;&lt;p&gt;[reposted from General Questions section, thought it might be more appropriate in Customising the CMS]&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: To Decorate or Subclass Member for ModelAdmin requirement - pls help!  &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281347#post281347&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281347#post281347&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 23 Mar 2010 01:20:05 +1300</pubDate>
			<dc:creator>dizzystuff</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281347#post281347</guid>
		</item>
		
		<item>
			<title>Remove the tabs in administrator</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281343#post281343</link>
			<description>&lt;p&gt;I would like to remove and dumb down the cms for my needs and employees. I have little php knowlege but silverstripe is proving very easy for a novice to manage.&lt;/p&gt;&lt;p&gt;I am lost when it comes to customizing the admin section. I want to remove the top set of tabs. Please see attached file. I did read you can do it be setting security permissions, but I would like to remove them from the coding&lt;/p&gt;&lt;p&gt;I would appreciate it if someone could give me advice or tell me where the file is so I can make the changes&lt;/p&gt;&lt;p&gt;Thank you in advance.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Remove the tabs in administrator &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281343#post281343&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281343#post281343&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 22 Mar 2010 22:28:13 +1300</pubDate>
			<dc:creator>holy noli</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281343#post281343</guid>
		</item>
		
		<item>
			<title>Turn Off Debug Mode!</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281342#post281342</link>
			<description>&lt;p&gt;Firstly, Silverstripe is amazing. I am a novice and use Joomla but I will be moving to silverstripe as soon as I can manage it. Really great system.&lt;/p&gt;&lt;p&gt;MY PROBLEM&lt;br /&gt;I thought debug mode might show me the file names so I can customize the admin easier&lt;/p&gt;&lt;p&gt;I added the following code to config.php &lt;/p&gt;&lt;p&gt;Director::set_environment_type(&quot;dev&quot;);&lt;/p&gt;&lt;p&gt;I then set it to &lt;br /&gt;Director::set_environment_type(&quot;live&quot;);&lt;/p&gt;&lt;p&gt;Debug mode was not what I expected. I am a novice and it is generating an error or stuck in debug mode. I cannot be sure. I have removed the code from config.php but it is still showing the error.&lt;/p&gt;&lt;p&gt;I would appreciate it if someone could tell me how to get rid of debug mode/this error&lt;/p&gt;&lt;p&gt;*********************************************************************************&lt;br /&gt;[Notice] Undefined variable: _SESSION&lt;br /&gt;GET /demo/admin&lt;/p&gt;&lt;p&gt;Line 120 in C:\xampp\htdocs\demo\sapphire\core\control\Director.php&lt;br /&gt;***********************************************************************************&lt;/p&gt;&lt;p&gt;Thank you.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Turn Off Debug Mode! &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281342#post281342&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281342#post281342&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 22 Mar 2010 22:16:11 +1300</pubDate>
			<dc:creator>holy noli</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281342#post281342</guid>
		</item>
		
		<item>
			<title>Identify show and edit forms</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281340#post281340</link>
			<description>&lt;p&gt;How can I know if the actual form is edit or show ?&lt;/p&gt;&lt;p&gt;function getCMSFields() {&lt;br /&gt; $fields = parent::getCMSFields();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;// This is working for add form:&lt;/p&gt;&lt;p&gt; if( !$this-&amp;gt;ID ) {&lt;br /&gt; // form = add&lt;br /&gt; // &lt;a href=&quot;https://www.xy.de/admin/Modeladmin/Depositaer/5/EditForm/field/News/add&quot;&gt;https://www.xy.de/admin/Modeladmin/Depositaer/5/EditForm/field/News/add&lt;/a&gt;&lt;br /&gt; }&lt;/p&gt;&lt;p&gt;// This is NOT working for show form:&lt;/p&gt;&lt;p&gt; if( $this-&amp;gt;action == 'show' ) {&lt;br /&gt; // form = show&lt;br /&gt; // &lt;a href=&quot;https://www.xy.de/admin/Modeladmin/Depositaer/5/EditForm/field/News/item/12/show&quot;&gt;https://www.xy.de/admin/Modeladmin/Depositaer/5/EditForm/field/News/item/12/show&lt;/a&gt;&lt;br /&gt; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt; return $fields;&lt;br /&gt;}&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Identify show and edit forms &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281340#post281340&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281340#post281340&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 22 Mar 2010 21:40:15 +1300</pubDate>
			<dc:creator>cardinale</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281340#post281340</guid>
		</item>
		
		<item>
			<title>Re: toDropdownMap question</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281306?start=0#post281316</link>
			<description>&lt;p&gt;Thanks Willr&lt;/p&gt;&lt;p&gt;I'll give it a try.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: toDropdownMap question &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281306?start=0#post281316&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/281306?start=0#post281316&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 22 Mar 2010 11:46:44 +1300</pubDate>
			<dc:creator>joelg</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281306?start=0#post281316</guid>
		</item>
		
		<item>
			<title>Re: toDropdownMap question</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281306?start=0#post281314</link>
			<description>&lt;p&gt;I'm pretty sure it will also check for methods called 'Nickname' on the object which can return and combination of fields.&lt;/p&gt;&lt;p&gt;If you had a function Nickname() { return $this-&amp;gt;FirstName . ' '. $this-&amp;gt;Surname; } (or if that doesn't work - getNickname()) then it should work. Though I am pretty sure the member object has a built in method like Fullname or Name which returns first name + surname so perhaps try those first before implementing your own&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: toDropdownMap question &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281306?start=0#post281314&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/281306?start=0#post281314&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 22 Mar 2010 11:39:04 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281306?start=0#post281314</guid>
		</item>
		
		<item>
			<title>toDropdownMap question</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281306#post281306</link>
			<description>&lt;p&gt;Hi &lt;/p&gt;&lt;p&gt;I have a simple dropdown with a toDropdownMap-function. It looks like this:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;DataObject::get('Employee')-&amp;gt;toDropdownMap('ID','NickName', 'Choose employee')&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Now, would it be possible, to show two or more Fields in the dropdown, like this?&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;DataObject::get('Employee')-&amp;gt;toDropdownMap('ID','FirstName' . 'Surname', 'Choose employee').&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;So, instead of showing a nickname, I want to show firstname and surname...&lt;/p&gt;&lt;p&gt;Thanks &lt;/p&gt;&lt;p&gt;Joel&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: toDropdownMap question &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281306#post281306&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281306#post281306&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 22 Mar 2010 02:27:35 +1300</pubDate>
			<dc:creator>joelg</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281306#post281306</guid>
		</item>
		
		<item>
			<title>Re: ModelAdmin with list</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/262049?start=0#post281305</link>
			<description>&lt;p&gt;Hi Ingo&lt;/p&gt;&lt;p&gt;Did this feature about performing a search by default ever get implemented? If so, how do I get a search click by deafult?&lt;/p&gt;&lt;p&gt;Joel&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: ModelAdmin with list &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/262049?start=0#post281305&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/262049?start=0#post281305&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 22 Mar 2010 00:31:22 +1300</pubDate>
			<dc:creator>joelg</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/262049?start=0#post281305</guid>
		</item>
		
		<item>
			<title>Re: How to use BBCodeParser in PHP code?</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281289?start=0#post281290</link>
			<description>&lt;p&gt;I found the solution  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;TextParser::create('BBCodeParser', $this-&amp;gt;Text )-&amp;gt;parse()&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How to use BBCodeParser in PHP code? &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281289?start=0#post281290&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/281289?start=0#post281290&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 21 Mar 2010 10:35:03 +1300</pubDate>
			<dc:creator>cardinale</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281289?start=0#post281290</guid>
		</item>
		
		<item>
			<title>How to use BBCodeParser in PHP code?</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281289#post281289</link>
			<description>&lt;p&gt;How to use BBCodeParser in PHP code?&lt;/p&gt;&lt;p&gt;This is not working!&lt;br /&gt;new LiteralField ('Text', BBCodeParser::setContent($this-&amp;gt;Text).'&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;')&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How to use BBCodeParser in PHP code? &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281289#post281289&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281289#post281289&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 21 Mar 2010 10:19:42 +1300</pubDate>
			<dc:creator>cardinale</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281289#post281289</guid>
		</item>
		
		<item>
			<title>Re: Articles</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281245?start=0#post281255</link>
			<description>&lt;p&gt;Lots of ways to do this. One is to have your own function like this in your HomePage.php file.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;// mysite/code/HomePage.php (or Page.php)&lt;br /&gt;function AllMyArticles() {&lt;br /&gt;return DataObject::get('MyArticleClass');&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Then you have a control in your template &amp;lt;% control AllMyArticles %&amp;gt; which will loop over all your articles. Another way to do it is if all your articles are in 1 place then you can use the ChildrenOf function in the template&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;// themes/yourtheme/templates/Layout/HomePage.ss (or whatever template&lt;br /&gt;&amp;lt;% control ChildrenOf(my-article-holder) %&amp;gt;&lt;br /&gt;// now I have children&lt;br /&gt;..&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Articles &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281245?start=0#post281255&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/281245?start=0#post281255&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 20 Mar 2010 13:11:50 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281245?start=0#post281255</guid>
		</item>
		
		<item>
			<title>Articles</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281245#post281245</link>
			<description>&lt;p&gt;Hello,&lt;br /&gt;I have just migrated from CMSMS to SilverStripe.&lt;br /&gt;I have a newbie question:&lt;br /&gt;How would one make it so all pages (which simply contain an &quot;article&quot; and no other data) would appear when I went to the parent page (for instance the Homepage)?&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Kiran&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Articles &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281245#post281245&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281245#post281245&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 20 Mar 2010 09:39:52 +1300</pubDate>
			<dc:creator>Kiran</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281245#post281245</guid>
		</item>
		
		<item>
			<title>'Are you sure?' Popup on CheckboxField</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281196#post281196</link>
			<description>&lt;p&gt;How easy would it be to have a popup attached to a CheckboxField in the CMS asking 'Are you sure?', when deselecting it?&lt;/p&gt;&lt;p&gt;Any pointers would be great, thanks.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: 'Are you sure?' Popup on CheckboxField &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281196#post281196&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281196#post281196&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 19 Mar 2010 05:22:17 +1300</pubDate>
			<dc:creator>timwjohn</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281196#post281196</guid>
		</item>
		
		<item>
			<title>Re: Categories and Subcategories</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281193</link>
			<description>&lt;p&gt;Ahh I see, makes more sense now. Then yea I guess you can just use removeFieldFromTab($TabName, $FieldName) and removeByName($Name) to remove the bits you dont need  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;Anyway glad I could help!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Categories and Subcategories &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281193&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/281008?start=0#post281193&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 19 Mar 2010 04:26:34 +1300</pubDate>
			<dc:creator>aram</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281193</guid>
		</item>
		
		<item>
			<title>Re: Categories and Subcategories</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281191</link>
			<description>&lt;p&gt;No, you're quite right.&lt;/p&gt;&lt;p&gt;These categories will be shown as pages in the client, but not as HTML pages - I'm using a flash frontend for this one, so my templates will be outputting XML for the Flash to read. It's also installed on a local server - i.e. server and flash client all on a standalone kiosk machine. So stuff like metadata, behaviour etc isn't really needed for this application. I accept this is not exactly what SilverStripe was made for, but the discovery of ModelAdmin has made it more suitable and powerful, especially when we're talking about 500+ products.&lt;/p&gt;&lt;p&gt;If I do take the site tree route I shall pitch the Christmas Offers argument as an advantage of the drafts functionality though!&lt;/p&gt;&lt;p&gt;Thanks again Aram.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Categories and Subcategories &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281191&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/281008?start=0#post281191&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 19 Mar 2010 04:20:24 +1300</pubDate>
			<dc:creator>timwjohn</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281191</guid>
		</item>
		
		<item>
			<title>Re: Categories and Subcategories</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281182</link>
			<description>&lt;p&gt;Well, I am not really sure why you would want to remove all that functionality? It all seems useful to me.&lt;/p&gt;&lt;p&gt;Forexample having draft functionality means ur client can hide some categories that they might not want to show all the time without having to delete them, for example 'Christmas Offers' etc.&lt;/p&gt;&lt;p&gt;I am assuming these categories will be viewable as pages showing their accociated products no? If they are then it seems as though you don't really need to remove much functionality at all, it should behave as a page with metadata, page title, menu title etc. the only thing you might want to remove is the content field.&lt;/p&gt;&lt;p&gt;Am I missing something?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Categories and Subcategories &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281182&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/281008?start=0#post281182&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 19 Mar 2010 03:24:55 +1300</pubDate>
			<dc:creator>aram</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281182</guid>
		</item>
		
		<item>
			<title>Re: Categories and Subcategories</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281181</link>
			<description>&lt;p&gt;Hi Aram,&lt;/p&gt;&lt;p&gt;That's a nice way of doing it, thank you!&lt;/p&gt;&lt;p&gt;If I am to use the site tree to represent categories and subcategories, it would be great to simplify the interface with things like disabling the draft functionality (which isn't really needed in this case), removing the automatic generation of 'Page not found', and removing all unwanted tabs (which I believe can be done with removeByName()).&lt;/p&gt;&lt;p&gt;I don't suppose this is a straightforward process, but if you have any ideas it would be a great help.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Categories and Subcategories &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281181&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/281008?start=0#post281181&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 19 Mar 2010 03:17:25 +1300</pubDate>
			<dc:creator>timwjohn</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281181</guid>
		</item>
		
		<item>
			<title>Re: Using FileIFrameField in the CMS</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/257541?start=0#post281174</link>
			<description>&lt;p&gt;I tried to restrict the maximum filesize for a ImageField, but it didn't work (using SilverStripe 2.3.6). I set it to 1 MB, but I was able to upload a picture with over 2 MB.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$navigationImage = new ImageField('NavigationImage', 'Navigation image');&lt;br /&gt;$navigationImage-&amp;gt;setAllowedMaxFileSize(array('*' =&amp;gt; 1048576));&lt;br /&gt;$fields-&amp;gt;addFieldToTab('Root.Content.Navigation', $navigationImage);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;To be sure that the documentation of the API is correct and the maximum filesize has to be defined in bytes, I tried some smaller numbers like 100, but I was able to upload my 2 MB picture anyway. Now I would like to know if there is any solution for this problem.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Using FileIFrameField in the CMS &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/257541?start=0#post281174&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/257541?start=0#post281174&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 18 Mar 2010 23:14:46 +1300</pubDate>
			<dc:creator>aimcom</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/257541?start=0#post281174</guid>
		</item>
		
		<item>
			<title>Re: Categories and Subcategories</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281158</link>
			<description>&lt;p&gt;Hi Tim,&lt;/p&gt;&lt;p&gt;here is the way I would do it:&lt;/p&gt;&lt;p&gt;Categories &amp;amp; Subcategories as PageTypes. This allows the client to see the structure in the tree, which I think is a lot clearer than trying to figure it out from model admin relationships. You can then set the static variable $allowed_children to ensure the structure that you want, so 'CategoryPage' would have allowed_children of 'SubcategoryPage' and SubcategoryPage would have allowed_children of 'none'.&lt;/p&gt;&lt;p&gt;Then you manage your products in model admin and use the multiselect field (module) on the SubcategoryPage to manage the Many_Many relationship to those products.&lt;/p&gt;&lt;p&gt;If you want some more detailed code examples let me know  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;Aram&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Categories and Subcategories &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281158&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/281008?start=0#post281158&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 18 Mar 2010 12:27:38 +1300</pubDate>
			<dc:creator>aram</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281008?start=0#post281158</guid>
		</item>
		
		<item>
			<title>Re: TableField Pagination size</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/252567?start=0#post281143</link>
			<description>&lt;p&gt;As simple as that! Brilliant. I really need to get into the habit of studying the API documentation. Thanks Aram.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TableField Pagination size &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/252567?start=0#post281143&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/252567?start=0#post281143&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 18 Mar 2010 10:17:35 +1300</pubDate>
			<dc:creator>timwjohn</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/252567?start=0#post281143</guid>
		</item>
		
		<item>
			<title>Re: TableField Pagination size</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/252567?start=0#post281131</link>
			<description>&lt;p&gt;lol, those were the days, editing core files willy nilly! hehe&lt;/p&gt;&lt;p&gt;You actually don't need to go anywhere near the core files, instead you can set it explicity in the field definition using $manager-&amp;gt;setPageSize($pageSize): &lt;/p&gt;&lt;p&gt;For example if using a dataobject manager (would be the same for ComplextableField):&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$manager = new DataObjectManager(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this, // Controller&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Faqs', // Source name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Faq', // Source class&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;array('Question' =&amp;gt; 'Question','AnswerSummary' =&amp;gt; 'Answer'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'getCMSFields_forPopup'&lt;br /&gt;);&lt;br /&gt;$manager-&amp;gt;setPageSize(50);&lt;br /&gt;$fields-&amp;gt;addFieldToTab(&quot;Root.Content.FAQs&quot;, $manager);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Would set the page size to 50. I think you can also do setShowPagination(0) on a ComplexTableField to turn off pagination, but it doesnt seem to work on a DataObjectManager.&lt;/p&gt;&lt;p&gt;Hope that helps! &lt;/p&gt;&lt;p&gt;Aram&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TableField Pagination size &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/252567?start=0#post281131&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/252567?start=0#post281131&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 18 Mar 2010 07:27:27 +1300</pubDate>
			<dc:creator>aram</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/252567?start=0#post281131</guid>
		</item>
		
		<item>
			<title>Re: TableField Pagination size</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/252567?start=0#post281129</link>
			<description>&lt;p&gt;I don't think it's line 135 anymore... &lt;/p&gt;&lt;p&gt;What was it you changed to disable pagination (if you can remember over a year later!)&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TableField Pagination size &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/252567?start=0#post281129&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/252567?start=0#post281129&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 18 Mar 2010 07:02:31 +1300</pubDate>
			<dc:creator>timwjohn</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/252567?start=0#post281129</guid>
		</item>
		
		<item>
			<title>Sitemap with Hierarchical URLs</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281101#post281101</link>
			<description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I'm trying to work out how to update the sitemap code as given in the Wiki (&lt;a href=&quot;http://doc.silverstripe.org/doku.php?id=tutorial:site-map&quot;&gt;http://doc.silverstripe.org/doku.php?id=tutorial:site-map&lt;/a&gt;) to work with the new hierarchical URLs in 2.4 beta.&lt;/p&gt;&lt;p&gt;Using $page-&amp;gt;URLSegment gives just the final segment (as expected) but how do we go about getting the full URL? Using $page-&amp;gt;Link doesn't work from the controller.&lt;/p&gt;&lt;p&gt;Cheers.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Sitemap with Hierarchical URLs &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281101#post281101&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281101#post281101&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 17 Mar 2010 17:12:42 +1300</pubDate>
			<dc:creator>drewww</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281101#post281101</guid>
		</item>
		
		<item>
			<title>External Database</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281043#post281043</link>
			<description>&lt;p&gt;Following challenge:&lt;/p&gt;&lt;p&gt;When creating an new Page, the data should be checked by the data of an external Database.&lt;/p&gt;&lt;p&gt;Example:&lt;/p&gt;&lt;p&gt;Silverstripe:&lt;/p&gt;&lt;p&gt;public static $db = array(&lt;br /&gt;'EventDate' =&amp;gt; 'Date',&lt;br /&gt;'EventName' =&amp;gt; 'Text',&lt;br /&gt;'EventID' =&amp;gt; 'Int',&lt;br /&gt;);&lt;/p&gt;&lt;p&gt;$fields-&amp;gt;addFieldToTab(&quot;Root.Content.Main&quot;, new TextField('EventDate','Date:'));&lt;br /&gt;$fields-&amp;gt;addFieldToTab(&quot;Root.Content.Main&quot;, new TextField('EventName','Text:'));&lt;/p&gt;&lt;p&gt;External Database:&lt;/p&gt;&lt;p&gt;'eventDate' =&amp;gt; 'Date',&lt;br /&gt;'eventName' =&amp;gt; 'Text',&lt;br /&gt;'eventID' =&amp;gt; 'Int', &lt;/p&gt;&lt;p&gt;Bevore storing the data in SilverStripe I have to check, if SilverStripe.EventDate corresponds with an entry in external.eventDate and SilverStripe.EventName corresponds with an entry in external.eventName. If not, store the data in the external database and store the external.eventID in SilverStripe.EventID.&lt;/p&gt;&lt;p&gt;Has anyone any idea?&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;geist&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: External Database &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281043#post281043&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281043#post281043&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 16 Mar 2010 21:25:51 +1300</pubDate>
			<dc:creator>geist</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281043#post281043</guid>
		</item>
		
		<item>
			<title>Re: RSS Feed with images</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/280966?start=0#post281041</link>
			<description>&lt;p&gt;You can give an image field instead of content and it will be inserted as such.&lt;/p&gt;&lt;p&gt;However if you also want to include text then it gets hairy.&lt;/p&gt;&lt;p&gt;I got as far as including the RSSFeed-class in my page.php, but after that I got stuck. And I couldnot find the correct location to store my own RSSfeed.ss.&lt;/p&gt;&lt;p&gt;Anyone have any infos on this? (asked htis before, nobody seems to know)&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: RSS Feed with images &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/280966?start=0#post281041&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/280966?start=0#post281041&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 16 Mar 2010 20:23:09 +1300</pubDate>
			<dc:creator>yurigoul</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/280966?start=0#post281041</guid>
		</item>
		
		<item>
			<title>Re: RSS Feed with images</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/280966?start=0#post281040</link>
			<description>&lt;p&gt;If you wish to submit this as a feature request please open a new enhancement ticket on &lt;a href=&quot;http://open.silverstripe.org/&quot;&gt;http://open.silverstripe.org&lt;/a&gt; if there isn't one already.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: RSS Feed with images &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/280966?start=0#post281040&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/280966?start=0#post281040&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 16 Mar 2010 19:18:56 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/280966?start=0#post281040</guid>
		</item>
		
		<item>
			<title>limiting member login access to one at a time</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/281036#post281036</link>
			<description>&lt;p&gt;hi, has anyone else successfully customised the cms to limit member login access to one at a time?&lt;/p&gt;&lt;p&gt;with the current member login, it is possible for multiple users to login using the same username/password at the same time. however one of our clients would like it so that if a username/password is already in use, anyone trying to login with the same details will receive an error message.&lt;/p&gt;&lt;p&gt;cheers, erica.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: limiting member login access to one at a time &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281036#post281036&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/281036#post281036&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 16 Mar 2010 17:29:35 +1300</pubDate>
			<dc:creator>nishnish</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/281036#post281036</guid>
		</item>
		
		<item>
			<title>Re: URL handling issue</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/280579?start=0#post281023</link>
			<description>&lt;p&gt;Rather then just use what the author enters you should generate a valid URL slug and use that as the link. I'm guessing category is a dataobject? If so you can use onBeforeWrite() to add a slug field to your category.&lt;/p&gt;&lt;p&gt;Heres a quick example&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 Category extends DataObject {&lt;/p&gt;&lt;p&gt;static $db = array(&lt;br /&gt;'Title' =&amp;gt; 'Varchar(200)',&lt;br /&gt;'Slug' =&amp;gt; 'Varchar(200)&lt;br /&gt;...&lt;br /&gt;);&lt;br /&gt;...&lt;/p&gt;&lt;p&gt;function onBeforeWrite() {&lt;br /&gt;parent::onBeforeWrite();&lt;br /&gt;if(!$this-&amp;gt;Slug) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$str = strtolower(trim($this-&amp;gt;Title)); // use lowercase urls&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$str = preg_replace('/[^a-z0-9-]/', '-', $str); // use alphanumeric values only&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$str = preg_replace('/-+/', &quot;-&quot;, $str);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;Slug = $str;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;...&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Now you have a $Slug field which gives a more reliable result then using a title which is defined in the cms.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: URL handling issue &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/280579?start=0#post281023&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/280579?start=0#post281023&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 16 Mar 2010 13:05:20 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/280579?start=0#post281023</guid>
		</item>
		
		<item>
			<title>Re: URL handling issue</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/280579?start=0#post281020</link>
			<description>&lt;p&gt;Thanks, Willr.&lt;/p&gt;&lt;p&gt;What I'm trying to do, basically, is pass a category name. I'd like to use the name, rather than an id, for SEO reasons. I don't get to pick the category names, so I can't necessarily exclude forward slashes.&lt;/p&gt;&lt;p&gt;It seems that an encoded slash should be acceptable. I guess I will submit a ticket in Trac, but I wanted to check here first, as I figured I had just overlooked something obvious.&lt;/p&gt;&lt;p&gt;Best,&lt;br /&gt;David&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: URL handling issue &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/280579?start=0#post281020&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/280579?start=0#post281020&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 16 Mar 2010 12:08:05 +1300</pubDate>
			<dc:creator>dbenton</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/280579?start=0#post281020</guid>
		</item>
		
		<item>
			<title>Re: URL handling issue</title>
			<link>http://www.silverstripe.org/customising-the-cms/show/280579?start=0#post281017</link>
			<description>&lt;p&gt;I think you want to avoid any use of / in your parameters. - is fine, SS will convert - to _ for the action method I believe so /page/action-something will call action_something()&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: URL handling issue &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/280579?start=0#post281017&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/reply/280579?start=0#post281017&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 16 Mar 2010 11:56:46 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/customising-the-cms/show/280579?start=0#post281017</guid>
		</item>
		

	</channel>
</rss>