<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>SilverStripe Documentation Wiki - Latest Comments</title><link>http://silverstripe-doc.disqus.com/</link><description>Community for SilverStripe documentation</description><atom:link href="https://silverstripe-doc.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 07 Jan 2015 22:24:57 -0000</lastBuildDate><item><title>Re: Site search - Tutorials - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/tutorials/4-site-search#comment-1777700582</link><description>&lt;p&gt;I just want to point out that adding full site search is nowhere near as complicated as this tutorial makes it seem.&lt;/p&gt;&lt;p&gt;To add search to your site, you just need to do the following:&lt;/p&gt;&lt;p&gt;1. Put FulltextSearchable::enable(); in your mysite/_config.php file&lt;br&gt;2. Create the themes/simple/templates/Layout/&lt;a href="http://Page_results.ss" rel="nofollow noopener" target="_blank" title="Page_results.ss"&gt;Page_results.ss&lt;/a&gt; file (you can copy/paste the example template included in this tutorial)&lt;br&gt;3. Put $SearchForm wherever you want the search form to appear&lt;/p&gt;&lt;p&gt;Felt like this was worth posting after a colleague got confused by this tutorial and started implementing a bunch of unnecessary code.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jordan Koncz</dc:creator><pubDate>Wed, 07 Jan 2015 22:24:57 -0000</pubDate></item><item><title>Re: Grouping dataobjectsets - Howto - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/howto/grouping-dataobjectsets?_ga=1.63659631.1513286104.1420460786#comment-1772597380</link><description>&lt;p&gt;If you plan to group by title:&lt;/p&gt;&lt;p&gt;"PHP stops infinite recursion on magic methods. $this-&amp;gt;Title would &lt;br&gt;call $this-&amp;gt;getTitle() which would call $this-&amp;gt;Title which would &lt;br&gt;call $this-&amp;gt;getTitle() and so on.&lt;/p&gt;&lt;p&gt;Instead, use $this-&amp;gt;getField('Title')"&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.silverstripe.org/community/forums/general-questions/show/25216" rel="nofollow noopener" target="_blank" title="http://www.silverstripe.org/community/forums/general-questions/show/25216"&gt;http://www.silverstripe.org...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dave</dc:creator><pubDate>Mon, 05 Jan 2015 08:50:44 -0000</pubDate></item><item><title>Re: Pagination - Howto - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/howto/pagination#comment-1772028345</link><description>&lt;p&gt;Yes, as of 3.0 this limits it at the database level and generates simple count queries to calculate number of pages etc,&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Rossiter</dc:creator><pubDate>Sun, 04 Jan 2015 20:33:35 -0000</pubDate></item><item><title>Re: Pagination - Howto - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/howto/pagination#comment-1770759528</link><description>&lt;p&gt;Out of curiosity: Does this limit results for DataObjects at the database level? I don't see that mentioned here. Just to make sure we aren't fetching unnecessary results into memory that aren't being used. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Patrick Nelson</dc:creator><pubDate>Sat, 03 Jan 2015 21:30:44 -0000</pubDate></item><item><title>Re: Extending a basic site - Tutorials - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/tutorials/2-extending-a-basic-site#comment-1737955056</link><description>&lt;p&gt;$Form is a placeholder for the Login form, Forgotten Password or modules such as Userforms inject into it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Rossiter</dc:creator><pubDate>Thu, 11 Dec 2014 21:52:13 -0000</pubDate></item><item><title>Re: Extending a basic site - Tutorials - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/tutorials/2-extending-a-basic-site#comment-1705681613</link><description>&lt;p&gt;What is the purpose of the $Form variable found in page layout templates?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brendan McKeown</dc:creator><pubDate>Fri, 21 Nov 2014 12:34:06 -0000</pubDate></item><item><title>Re: Configuration - Topics - Framework -  SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/topics/configuration#comment-1570955455</link><description>&lt;p&gt;Just two small remarks on replacing configuration values:&lt;br&gt;Using the Config class you have to call remove() and update() to set a new configuration value.&lt;br&gt;Using YAML files you have to know, that array values (such as $summary_fields) can't be replaced via YAML as array values are merged. (as SS 3.1)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sebastian Mucke</dc:creator><pubDate>Tue, 02 Sep 2014 16:45:45 -0000</pubDate></item><item><title>Re: Templates - Reference - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/reference/templates#comment-1569272161</link><description>&lt;p&gt;In the includes section it says "Includes can't directly access the parent scope". This also means, there's no access to the Top scope of the including template via $Top as mentioned here:&lt;br&gt;&lt;a href="https://github.com/silverstripe/silverstripe-framework/issues/3460#issuecomment-54003749" rel="nofollow noopener" target="_blank" title="https://github.com/silverstripe/silverstripe-framework/issues/3460#issuecomment-54003749"&gt;https://github.com/silverst...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;So: $Top is the current scope when the include was called. Nevertheless sometimes it's necessary to access the $Top scope within an include, especially when you think about recursive includes like menus or nested trees (f.e. comments). In such cases you may find following workaround helpful:&lt;/p&gt;&lt;p&gt;MainTemplate: Pass the $Top scope via variable to the nested template.&lt;br&gt;&amp;lt;% include NestedTemplate MainController=$Top %&amp;gt;&lt;/p&gt;&lt;p&gt;NestedTemplate: Hand it over down the include stack.&lt;br&gt;&amp;lt;% include NestedTemplate MainController=$MainController %&amp;gt;&lt;/p&gt;&lt;p&gt;Now you're able to call the $Top scope within the include via $MainController whenever you like.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sebastian Mucke</dc:creator><pubDate>Mon, 01 Sep 2014 15:19:59 -0000</pubDate></item><item><title>Re: Uploadfield - Reference - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/reference/uploadfield#comment-1386632812</link><description>&lt;p&gt;Note you have to return a Form object from the function Form(...) if you use UploadField. You can't use renderWith as it errors on the file upload check:&lt;br&gt;/gallery/Form/field/Images/fileexists?filename=image.jpg&lt;/p&gt;&lt;p&gt;ERROR [User Warning]: popCurrent called on ModelAsController controller, but it wasn't at the top of the stack&lt;br&gt;IN GET /gallery/Form/field/Images/fileexists?filename=image.jpg&lt;br&gt;Line 455 in \framework\control\Controller.php&lt;/p&gt;&lt;p&gt;Also avoid the use of any output as Debug::Show() in your Form function as it breaks the JSON code that is generated, breaking your UploadFile.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&lt;br&gt;&lt;br&gt;    public function Form() {&lt;br&gt;        $fields = new FieldList(&lt;br&gt;            new TextField('Title', 'Title', null, 255),&lt;br&gt;            $field = new UploadField('Images', 'Upload Images')&lt;br&gt;        ); &lt;br&gt;        $field-&amp;gt;setCanAttachExisting(false); // Block access to Silverstripe assets library&lt;br&gt;        $field-&amp;gt;setCanPreviewFolder(false); // Don't show target filesystem folder on upload field&lt;br&gt;        $field-&amp;gt;relationAutoSetting = false; // Prevents the form thinking the GalleryPage is the underlying object&lt;br&gt;        $actions = new FieldList(new FormAction('submit', 'Save Images'));&lt;br&gt;&lt;br&gt;        // This gives an error&lt;br&gt;        // return $this-&amp;gt;renderWith(array('PrettyForm', 'Page'), array('Form' =&amp;gt; $form));&lt;br&gt;&lt;br&gt;        // Only the original example works&lt;br&gt;        return new Form($this, 'Form', $fields, $actions, null);&lt;br&gt;    }&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marijn Kampf</dc:creator><pubDate>Thu, 15 May 2014 05:00:47 -0000</pubDate></item><item><title>Re: Forms - Tutorials - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/tutorials/3-forms#comment-1245013674</link><description>&lt;p&gt;Flush.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joris Debonnet</dc:creator><pubDate>Fri, 14 Feb 2014 22:02:46 -0000</pubDate></item><item><title>Re: Modeladmin - Reference - Framework -  SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/reference/modeladmin#comment-1221821070</link><description>&lt;p&gt;Little problem with the docs..&lt;/p&gt;&lt;p&gt;DataLists are now immutable, meaning you'll need to do this:&lt;/p&gt;&lt;p&gt;  public function getList()  {&lt;/p&gt;&lt;p&gt;        $list = parent::getList();&lt;/p&gt;&lt;p&gt;        // Always limit by model class, in case you're managing multiple&lt;/p&gt;&lt;p&gt;        if($this-&amp;gt;modelClass == 'Product') {&lt;/p&gt;&lt;p&gt;$list = $list-&amp;gt;exclude('Price', '0');&lt;/p&gt;&lt;p&gt;        }&lt;/p&gt;&lt;p&gt;        return $list;&lt;/p&gt;&lt;p&gt;    }&lt;/p&gt;&lt;p&gt;See :&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.silverstripe.org/data-model-questions/show/23594" rel="nofollow noopener" target="_blank" title="http://www.silverstripe.org/data-model-questions/show/23594"&gt;http://www.silverstripe.org...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lemon8</dc:creator><pubDate>Wed, 29 Jan 2014 10:07:37 -0000</pubDate></item><item><title>Re: Modules - Topics - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.com/framework/en/topics/modules#comment-1215820368</link><description>&lt;p&gt;Yes, from 2012 but that was around 3.0 release and that was too late in the process to introduce it. Looking at 4.0 / 3.2 perhaps for such a change.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Rossiter</dc:creator><pubDate>Fri, 24 Jan 2014 22:24:06 -0000</pubDate></item><item><title>Re: Modules - Topics - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.com/framework/en/topics/modules#comment-1215804415</link><description>&lt;p&gt;That discussion was from 2012! Honestly, the fact that I'd have to keep cache files etc. in a public folder (.htaccess or not) has kept me from giving SilverStripe a chance. It shouldn't require hacks to change the directory structure, just take a look at how modern frameworks like Laravel do it in their bootstrap file.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joe Hayes</dc:creator><pubDate>Fri, 24 Jan 2014 22:01:01 -0000</pubDate></item><item><title>Re: Modules - Topics - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.com/framework/en/topics/modules#comment-1213182818</link><description>&lt;p&gt;Support for this is coming in the next major release. See &lt;a href="https://groups.google.com/d/topic/silverstripe-dev/DndIpQ26F7M/discussion" rel="nofollow noopener" target="_blank" title="https://groups.google.com/d/topic/silverstripe-dev/DndIpQ26F7M/discussion"&gt;https://groups.google.com/d...&lt;/a&gt; for more of a discussion&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Rossiter</dc:creator><pubDate>Thu, 23 Jan 2014 04:36:23 -0000</pubDate></item><item><title>Re: Modules - Topics - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.com/framework/en/topics/modules#comment-1211929026</link><description>&lt;p&gt;Having modules inside the rootfolder IMHO is not the perfect solution.&lt;/p&gt;&lt;p&gt;I would prefer something like&lt;/p&gt;&lt;p&gt;projectroot&lt;br&gt;|&lt;br&gt;-- /document root&lt;/p&gt;&lt;p&gt;.....|&lt;/p&gt;&lt;p&gt;.....-- index.php ( including frameworks main and passing request params)&lt;/p&gt;&lt;p&gt;.....-- .htaccess&lt;/p&gt;&lt;p&gt;.....-- /assets&lt;br&gt;|&lt;br&gt;-- /vendor&lt;/p&gt;&lt;p&gt;......|&lt;/p&gt;&lt;p&gt;......-- /silverstripe&lt;/p&gt;&lt;p&gt;............|&lt;br&gt;............- /framework&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jochen Schultz</dc:creator><pubDate>Wed, 22 Jan 2014 09:10:32 -0000</pubDate></item><item><title>Re: Environment management - Topics - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/2.3/topics/environment-management#comment-1203696119</link><description>&lt;p&gt;No. A single environment file is loaded but that environment file is a PHP file, so you can include your own require() code to parent directories if you want to set it up that way.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Rossiter</dc:creator><pubDate>Thu, 16 Jan 2014 01:47:49 -0000</pubDate></item><item><title>Re: Environment management - Topics - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/2.3/topics/environment-management#comment-1199765414</link><description>&lt;p&gt;Do the settings of _ss_environment.php files cascade in any way? For example, can I set global database connection details in the parent directory, but also set invividual live/dev environments in individual site directories?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tim John</dc:creator><pubDate>Tue, 14 Jan 2014 05:15:23 -0000</pubDate></item><item><title>Re: Dataobject relationship management - Tutorials - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/tutorials/5-dataobject-relationship-management#comment-1197856351</link><description>&lt;p&gt;This has been fixed :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cam Findlay</dc:creator><pubDate>Sun, 12 Jan 2014 19:28:14 -0000</pubDate></item><item><title>Re: Environment management - Topics - Framework -  SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/trunk/topics/environment-management#comment-1194132461</link><description>&lt;p&gt;SET the TEMP_FOLDER define.   Decide where you want it, CREATE the directory, and set it.   If "silverstripe-cache"  is not where it can be written by apache or is blocked by SELinux or anything else, there can be infinite and fatal memory consumption.    The defaults do not always work.  &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">BJ Chippindale</dc:creator><pubDate>Thu, 09 Jan 2014 15:23:33 -0000</pubDate></item><item><title>Re: Image - Reference - Framework -  SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/reference/image#comment-1193244224</link><description>&lt;p&gt;woth noting you can either chain methods to get at properties, or use a with... block to have control of the html&lt;/p&gt;&lt;p&gt;&lt;a href="$Image.CroppedImage(500,600).URL" rel="nofollow noopener" target="_blank" title="$Image.CroppedImage(500,600).URL"&gt;&lt;br&gt;  &amp;lt;% with $Image.CroppedImage(80,80) %&amp;gt;&lt;br&gt;    &amp;lt;img src="$URL" alt="$Caption" class="th"/&amp;gt;&lt;br&gt;  &amp;lt;% end_with %&amp;gt;&lt;br&gt;              &lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SeaWill</dc:creator><pubDate>Wed, 08 Jan 2014 23:21:34 -0000</pubDate></item><item><title>Re: Phpunit configuration - Howto - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/howto/phpunit-configuration#comment-1188476253</link><description>&lt;p&gt;Correction to the section about SQLITE3; the phpunit.xml file should use the 'get' tag rather than 'var', because they go to $_GET and $_ENV respectively.&lt;br&gt;Also, the _config.php code is quite odd; something like the following makes more sense:&lt;/p&gt;&lt;p&gt;if (Director::isDev() and isset($_GET['db']) and $_GET['db'] === 'sqlite3') {&lt;br&gt;        global $databaseConfig;&lt;br&gt;        $databaseConfig['type'] = 'SQLite3Database';&lt;br&gt;}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nik Rolls</dc:creator><pubDate>Sun, 05 Jan 2014 19:25:09 -0000</pubDate></item><item><title>Re: Controller - Topics - Framework -  SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/topics/controller#comment-1182214655</link><description>&lt;p&gt;Just to add to bambii7&lt;/p&gt;&lt;p&gt;I found that using SS3.1.2 if you use the default controller structure eg $Action/$ID/$OtherID then you can call the variable as follows without having to add $request parameter to your function:&lt;/p&gt;&lt;p&gt;// Get $ID from url&lt;br&gt;$this-&amp;gt;urlParams['ID']&lt;/p&gt;&lt;p&gt;// Get $OtherID from url&lt;br&gt;$this-&amp;gt;urlParams['OtherID']&lt;/p&gt;&lt;p&gt;I also found that depending how you use the variable you might need to specify if the variable is set or not. If you don't, you could get a 'Undefined Variable' notice:&lt;/p&gt;&lt;p&gt;// Get $ID and check that it is set&lt;br&gt;isset($this-&amp;gt;urlParams['ID'] )&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Optic Blaze</dc:creator><pubDate>Tue, 31 Dec 2013 07:35:56 -0000</pubDate></item><item><title>Re: Composer - Installation - Framework - SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/installation/composer#comment-1159971117</link><description>&lt;p&gt;A very nice video guide/intro to composer &lt;a href="http://www.youtube.com/watch?v=QOldVDVYnAE" rel="nofollow noopener" target="_blank" title="http://www.youtube.com/watch?v=QOldVDVYnAE"&gt;http://www.youtube.com/watc...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas B. Nielsen</dc:creator><pubDate>Thu, 12 Dec 2013 08:03:05 -0000</pubDate></item><item><title>Re: Configuration - Topics - Framework -  SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/topics/configuration#comment-1128351850</link><description>&lt;p&gt;Important note: You need to ?flush=1 your site before changes to the config.yml file(s) are applied. Not stated here, not obvious either.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Lohmaier</dc:creator><pubDate>Mon, 18 Nov 2013 13:00:02 -0000</pubDate></item><item><title>Re: Nginx - Installation - Framework -  SilverStripe Documentation</title><link>http://doc.silverstripe.org/framework/en/installation/nginx#comment-1118175270</link><description>&lt;p&gt;you can find another (updated) nginx tut at &lt;a href="http://halkyon.net/blog/setting-up-nginx-php-fpm-and-silverstripe-installation-on-fedora-19/" rel="nofollow noopener" target="_blank" title="http://halkyon.net/blog/setting-up-nginx-php-fpm-and-silverstripe-installation-on-fedora-19/"&gt;http://halkyon.net/blog/set...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lamin Barrow</dc:creator><pubDate>Mon, 11 Nov 2013 11:03:28 -0000</pubDate></item></channel></rss>