<?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>$searchable_fields with a default value</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23766</link>
			<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I have ModelAdmin to manage &quot;Manager&quot; dataobject records. I have a list of $searchable_fields to filter my data object result. One of the search filters is a Status dropdown menu with &quot;active' and &quot;Inactive&quot; values. By default it shows all dataobjects. What I want to see by default is only records that have active status. So far I have this code:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;static $searchable_fields = array(&lt;br /&gt;        'FirstName' =&amp;gt;array( 'title' =&amp;gt; 'First Name' ),&lt;br /&gt;        'Surname' =&amp;gt;array( 'title' =&amp;gt; 'Surname' ),&lt;br /&gt;        'Status' =&amp;gt;array( 'title' =&amp;gt; 'Status' )&lt;br /&gt;    );&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;any help?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: $searchable_fields with a default value | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23766&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23766&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 18 May 2013 01:19:38 +1200</pubDate>
			<dc:creator>sajok</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23766</guid>
		</item>
		
		<item>
			<title>Re: Sort GridField by Column</title>
			<link>http://www.silverstripe.org/data-model-questions/show/21131?start=8#post322095</link>
			<description>&lt;p&gt;oops, I did mean to get back to you on this.&lt;/p&gt;&lt;p&gt;so: search function: you know PHP right? Just write a form, set action=&quot;{$Link}/nameoffunction&quot; &lt;br /&gt;and then have a function in your controller called nameoffunction where you do what you need to with your POST data, and return a paginated list (see below link)&lt;/p&gt;&lt;p&gt;Pagination: &lt;a href=&quot;http://doc.silverstripe.org/framework/en/howto/pagination&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/framework/en/howto/pagination&lt;/a&gt; (simple google search found this)&lt;/p&gt;&lt;p&gt;You could use this module (&lt;a href=&quot;https://github.com/arambalakjian/DataObjects-as-Pages&quot; rel=&quot;nofollow&quot;&gt;https://github.com/arambalakjian/DataObjects-as-Pages&lt;/a&gt;) to make your dataobjects (i.e. the members) act as pages. which takes care of the link through to their own page bit. &lt;br /&gt;Or you could write your own version - this is an old (but good) example. &lt;a href=&quot;http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/&quot; rel=&quot;nofollow&quot;&gt;http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/&lt;/a&gt; (some syntax might be slightly different for SS3, but essentials are the same.&lt;/p&gt;&lt;p&gt;I think that covers it all. Happy coding!!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Sort GridField by Column | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/21131?start=8#post322095&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/21131&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 18 May 2013 00:47:46 +1200</pubDate>
			<dc:creator>RuthAdele</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/21131?start=8#post322095</guid>
		</item>
		
		<item>
			<title>Search in custom DataObjects and related tables</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23763</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;i have databese of proterties and its related attributes. I want to search in that database but i cant find proper solution. I want use fulltext search as is described in tutorial but divide it into two sections, one for pages, news and so on and the other for properties. My object structure is following. Can someone help me how to solve this ? Thanks for advices.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class Property extends DataObject {&lt;/p&gt;&lt;p&gt;    static $db = array(&lt;br /&gt;        'changed' =&amp;gt; 'SS_Datetime',&lt;br /&gt;        'template_id' =&amp;gt; 'Int',&lt;br /&gt;        'user_id' =&amp;gt; 'Int'&lt;br /&gt;         .....&lt;br /&gt;    );&lt;/p&gt;&lt;p&gt;    static $has_many = array(&lt;br /&gt;        'Attributes' =&amp;gt; 'PropertyAttribute'&lt;br /&gt;    );&lt;/p&gt;&lt;p&gt;     .......&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;class PropertyAttribute extends DataObject {&lt;/p&gt;&lt;p&gt;    static $db = array(&lt;br /&gt;        'name' =&amp;gt; 'varchar',&lt;br /&gt;        'value' =&amp;gt; 'text'&lt;br /&gt;    );&lt;br /&gt;    static $has_one = array(&lt;br /&gt;        'Property' =&amp;gt; 'Property'&lt;br /&gt;    );&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;class PropertyHolder extends Page{&lt;br /&gt;    ...&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;class PropertyHolder_Controller extends Page_Controller {&lt;br /&gt;   ...&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Search in custom DataObjects and related tables | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23763&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23763&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 22:38:17 +1200</pubDate>
			<dc:creator>Chimera</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23763</guid>
		</item>
		
		<item>
			<title>Re: Sort GridField by Column</title>
			<link>http://www.silverstripe.org/data-model-questions/show/21131?start=8#post322089</link>
			<description>&lt;p&gt;Can anyone help me create this filtering / search function for my members? Thanks&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Sort GridField by Column | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/21131?start=8#post322089&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/21131&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 21:06:40 +1200</pubDate>
			<dc:creator>pinkp</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/21131?start=8#post322089</guid>
		</item>
		
		<item>
			<title>Re: TreeDropDownField/DropDownField in DataObject does not save related SiteTree</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23669#post322082</link>
			<description>&lt;p&gt;I'm having this experience too, with a days-old pull down of the 3.1 branch. Any chance you found an answer or a patch for this spierala? Cheers.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: TreeDropDownField/DropDownField in DataObject does not save related SiteTree | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23669#post322082&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23669&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 18:36:03 +1200</pubDate>
			<dc:creator>dizzystuff</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23669#post322082</guid>
		</item>
		
		<item>
			<title>Re: DataObject can&#39;t access has many data via map class</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23746#post322074</link>
			<description>&lt;p&gt;Thats worked, thanks man. Cheeers  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DataObject can&amp;#39;t access has many data via map class | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23746#post322074&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23746&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 01:51:12 +1200</pubDate>
			<dc:creator>Chimera</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23746#post322074</guid>
		</item>
		
		<item>
			<title>Re: DataObject can&#39;t access has many data via map class</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23746#post322073</link>
			<description>&lt;p&gt;Yeah, my fault. Fancy getter/setter methods apparently don't work with arguments. Try:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% with $getAttribute(title) %&amp;gt; &lt;br /&gt;$Value &lt;br /&gt;&amp;lt;% end_with %&amp;gt;&lt;/p&gt;&lt;p&gt;$getAttribute(title).Value&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DataObject can&amp;#39;t access has many data via map class | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23746#post322073&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23746&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 01:46:45 +1200</pubDate>
			<dc:creator>Devlin</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23746#post322073</guid>
		</item>
		
		<item>
			<title>Re: DataObject can&#39;t access has many data via map class</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23746#post322072</link>
			<description>&lt;p&gt;Thanks, it looks great but when i use it as you described iam still getting this error&lt;/p&gt;&lt;p&gt;[Warning] Missing argument 1 for Property::getAttribute(), called in D:\WorkSpace\silverstripe\framework\view\ViewableData.php on line 106 and defined&lt;/p&gt;&lt;p&gt;my code&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function getAttribute($name) {&lt;br /&gt;        if ($name) {&lt;br /&gt;            return $this-&amp;gt;Attributes()&lt;br /&gt;                        -&amp;gt;filter(array('name' =&amp;gt; Convert::raw2sql($name)))&lt;br /&gt;                        -&amp;gt;first();&lt;br /&gt;        }&lt;br /&gt;        return null;&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;     &amp;lt;% with $Attribute(title) %&amp;gt; &lt;br /&gt;                $Value &lt;br /&gt;     &amp;lt;% end_with %&amp;gt;&lt;/p&gt;&lt;p&gt;     also tried ...&lt;/p&gt;&lt;p&gt;     $Attribute(title)&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DataObject can&amp;#39;t access has many data via map class | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23746#post322072&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23746&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 01:39:49 +1200</pubDate>
			<dc:creator>Chimera</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23746#post322072</guid>
		</item>
		
		<item>
			<title>Re: DataObject can&#39;t access has many data via map class</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23746#post322070</link>
			<description>&lt;p&gt;Map returns an array from a DataList, but you cannot use arrays in templates. Templates expect ViewableData.&lt;/p&gt;&lt;p&gt;Maybe I don't understand you correctly, but maybe this helps.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class MyDataObject extends DataObject{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $has_many = array( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Attributes' =&amp;gt; 'PropertyAttributes' &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function getProperty($name) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $this-&amp;gt;Attributes()&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;gt;filter(array('Name' =&amp;gt; Convert::raw2sql($name)))&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;gt;first();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Template:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% with $Property('foo') %&amp;gt;&lt;br /&gt;$Value&lt;br /&gt;&amp;lt;% end_with %&amp;gt;&lt;/p&gt;&lt;p&gt;// or&lt;br /&gt;$Property('foo').Value&lt;/p&gt;&lt;p&gt;// vanilla style&lt;br /&gt;&amp;lt;% loop $Attributes %&amp;gt;&lt;br /&gt;&amp;lt;% if $Name = 'Foo' %&amp;gt;&lt;br /&gt;$Value&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;lt;% end_with %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DataObject can&amp;#39;t access has many data via map class | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23746#post322070&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23746&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 May 2013 00:37:35 +1200</pubDate>
			<dc:creator>Devlin</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23746#post322070</guid>
		</item>
		
		<item>
			<title>Re: DataObject can&#39;t access has many data via map class</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23746#post322059</link>
			<description>&lt;p&gt;Nobody cant help me ? I just want to acces Property related data with their names instead $name $value pairs which are accessible only in loop, thats why i used map() which rebuild object to needed form.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DataObject can&amp;#39;t access has many data via map class | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23746#post322059&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23746&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 16 May 2013 20:28:01 +1200</pubDate>
			<dc:creator>Chimera</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23746#post322059</guid>
		</item>
		
		<item>
			<title>Many many relationships question.</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23749</link>
			<description>&lt;p&gt;First of all, sorry about my poor english.&lt;br /&gt;I'am new in silverstripe and i have a question about relationships.&lt;/p&gt;&lt;p&gt;here are my classes:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class Jugador extends DataObject {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $db = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Nombre' =&amp;gt; 'Varchar',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Apellido' =&amp;gt; 'Varchar',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static  $belongs_many_many = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Partido' =&amp;gt; 'Partido'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;and&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class Partido extends Page {&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;Fecha&quot;=&amp;gt;&quot;date&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;Resultado&quot;=&amp;gt;&quot;Varchar&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $many_many = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;Jugadores&quot;=&amp;gt;&quot;Jugador&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;public function getCMSFields() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = parent::getCMSFields();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$config = GridFieldConfig_RelationEditor::create();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$config-&amp;gt;getComponentByType('GridFieldDataColumns')-&amp;gt;setDisplayFields(array(&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;'Nombre' =&amp;gt; 'Nombre',&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;'Apellido'=&amp;gt; 'Apellido' &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$config-&amp;gt;getComponentByType('GridFieldAddExistingAutocompleter')-&amp;gt;setSearchFields(array(&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;'Nombre', &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;'Apellido'))-&amp;gt;setResultsFormat('$Nombre - $Apellido');&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$jugadoresField = new GridField(&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;'Jugadores', // Field name&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;'Jugador', // Field title&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;$this-&amp;gt;Jugadores(), &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;$config&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Jugadores', $jugadoresField);&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;$dateField = new DateField('Fecha');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$dateField-&amp;gt;setConfig('showcalendar', true);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Main', $dateField, 'Content');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab(&quot;Root.Main&quot;, new TextField('Resultado'), 'Content');&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;return $fields;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;so far i have a many many relation between &quot;Partido&quot; and &quot;Jugador&quot; (in english Match and players).&lt;br /&gt;if i add a &quot;partido&quot; i can link existing &quot;jugador&quot; to this new partido and works fine.&lt;br /&gt;the thing that i dont how to do is, that each player must have a diferent score on each &quot;partido&quot;.&lt;br /&gt;and i dont know how to add that relation in the classes.&lt;/p&gt;&lt;p&gt;any help will be appreciated.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Many many relationships question. | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23749&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23749&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 16 May 2013 08:01:57 +1200</pubDate>
			<dc:creator>T3nD4n</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23749</guid>
		</item>
		
		<item>
			<title>DataObject can&#39;t access has many data via map class</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23746</link>
			<description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;Iam new in SilverStripe and i have problem. I have DataObject called Property with relation defined like this :&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;static $has_many = array(&lt;br /&gt;        'Attributes' =&amp;gt; 'PropertyAttributes'&lt;br /&gt;    );&lt;/p&gt;&lt;p&gt;    public function PropertyAttributes() {&lt;br /&gt;        $attributes = $this-&amp;gt;Attributes();&lt;br /&gt;        $map = new SS_Map($attributes, &quot;name&quot;, &quot;value&quot;);&lt;br /&gt;        return $map;&lt;br /&gt;    }&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;One property have many attributes stored in DB in name value pairs. I want acces them in template with their name. When i try acces attributes in template &lt;span style=&quot;color:red&quot;&gt;$PropertyAttributes.title&lt;/span&gt; i am getting this warning &lt;/p&gt;&lt;p&gt;[Warning] call_user_func_array() expects parameter 1 to be a valid callback, class 'SS_Map' does not have a method 'XML_val'&lt;/p&gt;&lt;p&gt;How can i access these attributes in template on each property with their name ?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DataObject can&amp;#39;t access has many data via map class | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23746&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23746&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 16 May 2013 01:46:23 +1200</pubDate>
			<dc:creator>Chimera</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23746</guid>
		</item>
		
		<item>
			<title>Re: Silverstripe 3 adding new feature to model admin list</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23731#post322035</link>
			<description>&lt;p&gt;Thanks Willr.&lt;/p&gt;&lt;p&gt;pretty much the way these guys managed it &lt;a href=&quot;http://www.silverstripe.org/customising-the-cms/show/18565&quot; rel=&quot;nofollow&quot;&gt;http://www.silverstripe.org/customising-the-cms/show/18565&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I have tried this method and hit the never ending error chain. &lt;/p&gt;&lt;p&gt;All I really need pointers with is adding the button and where to define the function. The function itself is relatively easy.&lt;/p&gt;&lt;p&gt;Any help would be great.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Silverstripe 3 adding new feature to model admin list | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23731#post322035&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23731&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 20:30:38 +1200</pubDate>
			<dc:creator>NETim</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23731#post322035</guid>
		</item>
		
		<item>
			<title>Re: Silverstripe 3 adding new feature to model admin list</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23731#post322032</link>
			<description>&lt;p&gt;How you did it with 2.4 should roughly work with 3.0. You might want to look at writing a DataExtension instance for ModelAdmin and define updateEditForm. Pushing a new FormAction to the Form.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Silverstripe 3 adding new feature to model admin list | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23731#post322032&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23731&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 20:03:34 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23731#post322032</guid>
		</item>
		
		<item>
			<title>Re: Couldn&#39;t get Site Tree1</title>
			<link>http://www.silverstripe.org/data-model-questions/show/12628#post322028</link>
			<description>&lt;p&gt;I had this same problem - I found I had links to pages that weren't there any more/had their page type changed slightly. Possibly not the best solution but I just went through and updated the links... repairing and clearing cache didn't work for me...&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Couldn&amp;#39;t get Site Tree1 | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/12628#post322028&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/12628&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 May 2013 12:40:23 +1200</pubDate>
			<dc:creator>MartinPhone</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/12628#post322028</guid>
		</item>
		
		<item>
			<title>Silverstripe 3 adding new feature to model admin list</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23731</link>
			<description>&lt;p&gt;Hi Guys,&lt;/p&gt;&lt;p&gt;Trying to add a new feature into the model admin. We have a site that lists contacts in a model admin extension. &lt;/p&gt;&lt;p&gt;What we want to be able to do is add a button to model admin that will pass the filtered list of contacts to a function that will allow the site admin to add a message and push the contact phone numbers and message out to an SMS API.&lt;/p&gt;&lt;p&gt;I can figure out how to do this with SS2.4 but 'm a bit lost with doing this in SS3.&lt;/p&gt;&lt;p&gt;Any ideas?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Silverstripe 3 adding new feature to model admin list | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23731&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23731&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 14 May 2013 22:58:32 +1200</pubDate>
			<dc:creator>NETim</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23731</guid>
		</item>
		
		<item>
			<title>Re: Creating has_many relation with self</title>
			<link>http://www.silverstripe.org/data-model-questions/show/10609#post321929</link>
			<description>&lt;p&gt;Reviving this thread in the context of SilverStripe 3.0...&lt;/p&gt;&lt;p&gt;I'm looking to create a Thesaurus module to support controlled vocabularies and relationships between terms:&lt;/p&gt;&lt;p&gt;&lt;ul&gt;&lt;li&gt;Alternate Terms (Used For): many terms that are not current, or synonyms to the current term.  Using a text field in $db for this now, with a modified search filter to include partial matches from this when searching for Terms.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Broader Terms (BT): possibly many more general Terms&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Narrower Terms (NT): possibly many more specific Terms&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Related Terms (RT): possibly many Terms with a different (non-hierarchical) relationship&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/p&gt;&lt;p&gt;Broader Terms and Narrower Terms are inverses of each other, so I could define one of them in $many_many, and the other in $belongs_many_many. That way, when a Term has a Narrower Term, that Narrower Term lists the original term as a Broader Term. In abstract notation:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;if TermA is BT of TermB, then TermB is NT of TermA&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Related Terms, though, are bi-directional in themselves.  In the same notation as above:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;if TermA is RT of TermB, then TermB is RT of TermA&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Is this kind of self-relationship possible without having to manually specify the inverse relationships?  If the Data Model doesn't support it naturally, could a code block be added to insert the inverse relationship when the Related Term relationship is added?  If so, where would that go and what would it need to look like?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Creating has_many relation with self | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/10609#post321929&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/10609&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 09 May 2013 06:59:52 +1200</pubDate>
			<dc:creator>sekjal</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/10609#post321929</guid>
		</item>
		
		<item>
			<title>PaginatedList</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23687</link>
			<description>&lt;p&gt;Hi, I'm having some trouble working with PaginatedLists. Posted this on General Question Forum but I think here is the right place.&lt;br /&gt;I want to make my category page show 15 post in a paginatedlist but the pages must go on 5 pages step. (i.e. Page1  results: post 1-15, Page2 results: post 6-20). The first 5 results won't show the same fields of the others.&lt;br /&gt;The first page is working fine, but the buttons to change pages doesn't work, when I click on it, the URL changes but the page shows the same results.&lt;/p&gt;&lt;p&gt;Here is my actual code:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Subcategoria.php&lt;/strong&gt;&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public function Datalist(integer $num, $start ) {&lt;br /&gt;$paginatedList = new PaginatedList(Page::get()); &lt;br /&gt;$paginatedList-&amp;gt;setPageLength($num)-&amp;gt;setPageStart($start)-&amp;gt; where('&quot;ParentID&quot; = 7')-&amp;gt;Sort(&quot;ID&quot;, &quot;Desc&quot;); &lt;br /&gt;return $paginatedList; &lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;subcategoria.ss&lt;/strong&gt;&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% loop $Datalist(5,0) %&amp;gt; &lt;br /&gt;     &amp;lt;a href=$link&amp;gt; $Title &amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;% end_loop %&amp;gt;&lt;/p&gt;&lt;p&gt;---&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;% loop $Datalist(10,5) %&amp;gt; &lt;br /&gt;   &amp;lt;a href=$link&amp;gt; $Title &amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;% end_loop %&amp;gt;&lt;/p&gt;&lt;p&gt;=Pagination=&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;% if $Datalist(5,0).MoreThanOnePage %&amp;gt;&lt;br /&gt;    &amp;lt;% if $Datalist(5,0).NotFirstPage %&amp;gt;&lt;br /&gt;        &amp;lt;a class=&quot;prev&quot; href=&quot;$Datalist(5,0).PrevLink&quot;&amp;gt;Prev&amp;lt;/a&amp;gt;&lt;br /&gt;    &amp;lt;% end_if %&amp;gt;&lt;br /&gt;    &amp;lt;% loop $Datalist(5,0).Pages %&amp;gt;&lt;br /&gt;        &amp;lt;% if $CurrentBool %&amp;gt;&lt;br /&gt;            $PageNum&lt;br /&gt;        &amp;lt;% else %&amp;gt;&lt;br /&gt;            &amp;lt;% if $Link %&amp;gt;&lt;br /&gt;                &amp;lt;a href=&quot;$Link&quot;&amp;gt;$PageNum&amp;lt;/a&amp;gt;&lt;br /&gt;            &amp;lt;% else %&amp;gt;&lt;br /&gt;                ...&lt;br /&gt;            &amp;lt;% end_if %&amp;gt;&lt;br /&gt;        &amp;lt;% end_if %&amp;gt;&lt;br /&gt;        &amp;lt;% end_loop %&amp;gt;&lt;br /&gt;    &amp;lt;% if $Datalist(5,0).NotLastPage %&amp;gt;&lt;br /&gt;        &amp;lt;a class=&quot;next&quot; href=&quot;$Datalist(5,0).NextLink&quot;&amp;gt;Next&amp;lt;/a&amp;gt;&lt;br /&gt;    &amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I've tried to:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function Paginando() { &lt;br /&gt;return new PaginatedList($this-&amp;gt;Children(),$this-&amp;gt;request); &lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;just to make it work with the children pages, but whenever i add the &quot;$this-&amp;gt;request&quot;, the page crash and shows this message:&lt;/p&gt;&lt;p&gt;26 &amp;nbsp;&amp;nbsp;&amp;nbsp;public function __construct(SS_List $list, $request = array()) {&lt;br /&gt;27 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (!is_array($request) &amp;amp;&amp;amp; !$request instanceof ArrayAccess) {&lt;br /&gt;28 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:red&quot;&gt;throw new Exception('The request must be readable as an array.');&lt;/span&gt;&lt;br /&gt;29 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: PaginatedList | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23687&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23687&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 09 May 2013 06:52:09 +1200</pubDate>
			<dc:creator>Dimenicius</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23687</guid>
		</item>
		
		<item>
			<title>TreeDropDownField/DropDownField in DataObject does not save related SiteTree</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23669</link>
			<description>&lt;p&gt;I just tested on a blank 3.0.5 installation and 3.1 beta 3.&lt;br /&gt;If you have have a DataObject with related SiteTree like this...&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;private static $has_one = array(&lt;br /&gt;        &quot;MySiteTree&quot; =&amp;gt; &quot;SiteTree&quot;&lt;br /&gt;    );&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;editing the DataObject... the DropDownField never remembers the selected Page. the same happens with TreeDropDownField. &lt;br /&gt;It looks like it´s always saving the SiteTreeID of the Page that you are just editing in the CMS.&lt;/p&gt;&lt;p&gt;Is there any solution to this? or is it just a bug?&lt;br /&gt;Thanks,&lt;br /&gt;Florian&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: TreeDropDownField/DropDownField in DataObject does not save related SiteTree | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23669&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23669&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 08 May 2013 02:36:18 +1200</pubDate>
			<dc:creator>spierala</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23669</guid>
		</item>
		
		<item>
			<title>Re: Assign a user to a dataobject record</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23622#post321864</link>
			<description>&lt;p&gt;After running dev/build the user now is assigned to School dataobject. &lt;/p&gt;&lt;p&gt;Now when a manager edits their school record they see the dropdown field where the user is assigned to the school. I want this field to be hidden from school managers or to be shown as readonly field. &lt;/p&gt;&lt;p&gt;Any idea how to  make this possible?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Assign a user to a dataobject record | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23622#post321864&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23622&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 06 May 2013 14:41:09 +1200</pubDate>
			<dc:creator>sajok</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23622#post321864</guid>
		</item>
		
		<item>
			<title>Re: how to make  Pagination on my PageHolder</title>
			<link>http://www.silverstripe.org/data-model-questions/show/5236#post321860</link>
			<description>&lt;p&gt;Does it work on SS3? the getObjects is working fine, but the Next/Prev buttons aren't showing up&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: how to make  Pagination on my PageHolder | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/5236#post321860&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/5236&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 06 May 2013 11:50:41 +1200</pubDate>
			<dc:creator>Dimenicius</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/5236#post321860</guid>
		</item>
		
		<item>
			<title>Re: Assign a user to a dataobject record</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23622#post321833</link>
			<description>&lt;p&gt;That looks fine, have you run a /dev/build to rebuild your database?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Assign a user to a dataobject record | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23622#post321833&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23622&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 04 May 2013 09:46:39 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23622#post321833</guid>
		</item>
		
		<item>
			<title>Re: Assign a user to a dataobject record</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23622#post321828</link>
			<description>&lt;p&gt;Thanks Willr, that helps a lot.. &lt;/p&gt;&lt;p&gt;I created a dropdown field in the school dataobject so I can assign a user to manage the school, but when I select a user from the dropdown field it doesn't seem to be selected after clicking save:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;static $has_one = array( &lt;br /&gt;      'Manager' =&amp;gt; 'Member' &lt;br /&gt;      );&lt;/p&gt;&lt;p&gt;public function getCMSFields() {&lt;br /&gt;return new FieldList( &lt;br /&gt;          &amp;lt;...&amp;gt;&lt;br /&gt;          new DropdownField('MemberID', 'School Admin', DataList::create(&quot;Member&quot;)-&amp;gt;map(&quot;ID&quot;, &quot;Title&quot;))&lt;br /&gt;       );&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I have done this other object that I created with no problem, but in the case of Member class, do I need to sub-class it just to add a has_one relationship with the School DataObject?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Assign a user to a dataobject record | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23622#post321828&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23622&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 04 May 2013 05:51:28 +1200</pubDate>
			<dc:creator>sajok</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23622#post321828</guid>
		</item>
		
		<item>
			<title>Re: Creating a new member</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23549#post321805</link>
			<description>&lt;p&gt;Yes. You can even do&lt;/p&gt;&lt;p&gt;$member = new Member();&lt;br /&gt;$member-&amp;gt;Email = &quot;hi@email.com&quot;;&lt;br /&gt;..&lt;br /&gt;$member-&amp;gt;write(); // saves to database.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Creating a new member | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23549#post321805&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23549&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 03 May 2013 21:25:03 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23549#post321805</guid>
		</item>
		
		<item>
			<title>Re: Assign a user to a dataobject record</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23622#post321793</link>
			<description>&lt;p&gt;So your users are already in the CMS? First step is to break your project into steps and work on each step. Assigning users to a school is done via relationships (&lt;a href=&quot;http://doc.silverstripe.org/framework/en/tutorials/5-dataobject-relationship-management&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/framework/en/tutorials/5-dataobject-relationship-management&lt;/a&gt;) and permission control is done via can*() methods. For example:&lt;/p&gt;&lt;p&gt;&amp;lt;?php&lt;/p&gt;&lt;p&gt;class School extends DataObject {&lt;/p&gt;&lt;p&gt;static $has_one = array(&lt;br /&gt;'Manager' =&amp;gt; 'Member'&lt;br /&gt;);&lt;/p&gt;&lt;p&gt;function canEdit($member = null) {&lt;br /&gt;if(!$member) $member = Member::currentUser();&lt;/p&gt;&lt;p&gt;if($member-&amp;gt;ID == $this-&amp;gt;ManagerID) {&lt;br /&gt;return true;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;return Permission::check('ADMIN');&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;function canDelete($member = null) {&lt;br /&gt;return $this-&amp;gt;canEdit($member);&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Assign a user to a dataobject record | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23622#post321793&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23622&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 03 May 2013 20:38:58 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23622#post321793</guid>
		</item>
		
		<item>
			<title>Assign a user to a dataobject record</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23622</link>
			<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I have AdminModel section to create and manage schools. Now I need to assign a user to a specific school record, so they can only see that recod and edit it. Administrators can create schools and assign a user to them, but the assigned user can only see their school.&lt;/p&gt;&lt;p&gt;I'm thinking of adding a dropdown field of site users in the school creation page,  but I need help on how I can assign permission to them.&lt;/p&gt;&lt;p&gt;Any idea how to accomplish this?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Assign a user to a dataobject record | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23622&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23622&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 03 May 2013 05:45:57 +1200</pubDate>
			<dc:creator>sajok</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23622</guid>
		</item>
		
		<item>
			<title>Re: DataObject::get()-&gt;filter()  many_many relation question</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23507#post321760</link>
			<description>&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$pages = FooPage::get()-&amp;gt;filter(array('MyFooObject.ID:GreaterThan' =&amp;gt; 0));&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;That should work.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DataObject::get()-&amp;gt;filter()  many_many relation question | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23507#post321760&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23507&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 03 May 2013 03:19:33 +1200</pubDate>
			<dc:creator>Sphere</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23507#post321760</guid>
		</item>
		
		<item>
			<title>Re: DataObject::get()-&gt;filter()  many_many relation question</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23507#post321757</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;i'm not sure if this is the best way but it worked in my case. &lt;br /&gt;Try something like this:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;// Get Pages with at least one FooObject Connection&lt;br /&gt;$Pages = FooPage::get()-&amp;gt;leftJoin('FooPage_MyFooObject', &quot;FooPage.ID = FooPage_MyFooObject.FooPageID&quot;);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DataObject::get()-&amp;gt;filter()  many_many relation question | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23507#post321757&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23507&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 03 May 2013 01:26:52 +1200</pubDate>
			<dc:creator>Ironcheese</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23507#post321757</guid>
		</item>
		
		<item>
			<title>Re: [Solved] Customising results in Model Admin</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23594#post321731</link>
			<description>&lt;p&gt;Thanks for this, I saw it mention immutable eventually in the change log but had no idea what that meant. &lt;br /&gt;Will give this a go when I get home.&lt;/p&gt;&lt;p&gt;Thanks again&lt;/p&gt;&lt;p&gt;Mick&lt;br /&gt;##Update##&lt;br /&gt;All working, cheers for that.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved] Customising results in Model Admin | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23594#post321731&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23594&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 02 May 2013 04:27:51 +1200</pubDate>
			<dc:creator>cumquat</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23594#post321731</guid>
		</item>
		
		<item>
			<title>Re: [Solved] Customising results in Model Admin</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23594#post321730</link>
			<description>&lt;p&gt;Hi cumquat. DataLists are now immutable, meaning you'll need to do this:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public function getList() { &lt;br /&gt;    $list = parent::getList(); &lt;br /&gt;    // Always limit by model class, in case you're managing multiple &lt;br /&gt;    if($this-&amp;gt;modelClass == 'Producer') { &lt;br /&gt;        $list = $list-&amp;gt;exclude('New', '0'); &lt;br /&gt;    } &lt;br /&gt;    return $list; &lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Note the &quot;$list = &quot; addition.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved] Customising results in Model Admin | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23594#post321730&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23594&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 02 May 2013 04:16:15 +1200</pubDate>
			<dc:creator>kinglozzer</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23594#post321730</guid>
		</item>
		
		<item>
			<title>[Solved] Customising results in Model Admin</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23594</link>
			<description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;Not sure if this is a bug or if this function needs changing for 3.1 I am using the function below to filter out some records displayed in model admin as per the example on the reference page.&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public function getList() {&lt;br /&gt;        $list = parent::getList();&lt;br /&gt;        // Always limit by model class, in case you're managing multiple&lt;br /&gt;        if($this-&amp;gt;modelClass == 'Producer') {&lt;br /&gt;            $list-&amp;gt;exclude('New', '0');&lt;br /&gt;        }&lt;br /&gt;        return $list;&lt;br /&gt;    }&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;This used to work in version 3.0.2 but with 3.1 beta 3 its just not working any more. Any pointers?&lt;/p&gt;&lt;p&gt;Mick&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved] Customising results in Model Admin | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23594&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23594&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 01 May 2013 21:06:17 +1200</pubDate>
			<dc:creator>cumquat</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23594</guid>
		</item>
		
		<item>
			<title>Re: How to Customise Search Results?</title>
			<link>http://www.silverstripe.org/data-model-questions/show/13586#post321702</link>
			<description>&lt;p&gt;Hi experts,&lt;/p&gt;&lt;p&gt;Is it possible to customise silverstripe's search results? I need to match the searchstring with content of dataobject properties, but at the same time default functionality of the silverstripe search.&lt;/p&gt;&lt;p&gt;Hope you can help,&lt;/p&gt;&lt;p&gt;Thank youu!!!!!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: How to Customise Search Results? | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/13586#post321702&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/13586&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 01 May 2013 02:00:11 +1200</pubDate>
			<dc:creator>secuaz</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/13586#post321702</guid>
		</item>
		
		<item>
			<title>Set default value for each uploaded image on image gallery</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23581</link>
			<description>&lt;p&gt;Hello!&lt;/p&gt;&lt;p&gt;I have an image gallery and I would like to set for each uploaded image a default path value, which should be similar to the breadcrumbs. My code it's here, so my question is what should I write to 'Path' =&amp;gt; '', so that in my database would be saved the breadcrumbs ?&lt;br /&gt;For example if my gallery is located on this url: 'http://localhost/prosteel/projektgalerie/projekt-2/', than I would like to set the default value 'Projektgalerie Projekt 2'. I hope you can help me.&lt;/p&gt;&lt;p&gt;class ImageResource extends DataObject&lt;br /&gt;{&lt;br /&gt;    static $db = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Path' =&amp;gt; 'Text',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Caption' =&amp;gt; 'Text'&lt;br /&gt;    );&lt;/p&gt;&lt;p&gt;    static $has_one = array (&lt;br /&gt;        'Attachment' =&amp;gt; 'Image', //Needs to be an image&lt;br /&gt;        'Projects' =&amp;gt; 'Projects'&lt;br /&gt;    );        &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $defaults = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Path' =&amp;gt; ''&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;    public function getCMSFields_forPopup()&lt;br /&gt;    {&lt;br /&gt;        return new FieldSet(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    new TextareaField('Caption'),&lt;br /&gt;            new FileIFrameField('Attachment')&lt;br /&gt;        );&lt;br /&gt;    }&lt;br /&gt;}&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Set default value for each uploaded image on image gallery | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23581&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23581&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 30 Apr 2013 01:50:13 +1200</pubDate>
			<dc:creator>eri90</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23581</guid>
		</item>
		
		<item>
			<title>Re: How to resize an image directly after the upload?</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23100#post321657</link>
			<description>&lt;p&gt;Mark?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: How to resize an image directly after the upload? | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23100#post321657&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23100&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 29 Apr 2013 19:18:58 +1200</pubDate>
			<dc:creator>theGermaniac</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23100#post321657</guid>
		</item>
		
		<item>
			<title>Re: How to resize an image directly after the upload?</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23100#post321655</link>
			<description>&lt;p&gt;Mark&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: How to resize an image directly after the upload? | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23100#post321655&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23100&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 29 Apr 2013 18:18:04 +1200</pubDate>
			<dc:creator>2dealsok</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23100#post321655</guid>
		</item>
		
		<item>
			<title>Re: Sort GridField by Column</title>
			<link>http://www.silverstripe.org/data-model-questions/show/21131?start=8#post321636</link>
			<description>&lt;p&gt;Thanks again RuthAdele!&lt;/p&gt;&lt;p&gt;So basically I have a list of Members. Each has a name, image, website, description and most importantly a Discipline.&lt;br /&gt;The discipline is chosen from an enum array, so this is limited to say 10 disciplines. There is potential to have 100's of Members so I think a form sounds best. &lt;/p&gt;&lt;p&gt;Ideally I would have the user visit the Members page and be presented with a list of Members probably divided in to pages containing 10 results using Pagination (still need to work that out)&lt;/p&gt;&lt;p&gt;Then they need to be filtered by Discipline. Say with a drop down list. &quot;Search members by there discipline: *dropdown*&quot; This would then return only members from that discipline. I don't mind how this works as long as its easy for the user and looks smart.&lt;br /&gt;I was advised to look at this &lt;a href=&quot;http://api.silverstripe.org/3.0/source-class-DataObject.html#2692-2746&quot; rel=&quot;nofollow&quot;&gt;http://api.silverstripe.org/3.0/source-class-DataObject.html#2692-2746&lt;/a&gt; but i dont have the knowledge yet how to implement it.&lt;/p&gt;&lt;p&gt;One last addition would be that each member when clicking their name is taken there own page displaying all their info... but this is all to come.&lt;/p&gt;&lt;p&gt;If you think you could help that would be amazing!! &lt;br /&gt;You can contact me directly at joe[at]pinkpoliceman.com&lt;/p&gt;&lt;p&gt; &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Sort GridField by Column | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/21131?start=8#post321636&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/21131&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sun, 28 Apr 2013 03:09:38 +1200</pubDate>
			<dc:creator>pinkp</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/21131?start=8#post321636</guid>
		</item>
		
		<item>
			<title>Re: Sort GridField by Column</title>
			<link>http://www.silverstripe.org/data-model-questions/show/21131#post321626</link>
			<description>&lt;p&gt;No problem  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt;  I never get replies either, but I was still subscribed to this thread, so I got a notification email about it  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;So the line:&lt;/p&gt;&lt;p&gt;return $dataList : $dataList ? false; &lt;/p&gt;&lt;p&gt;is shorthand code for:&lt;/p&gt;&lt;p&gt;if ($dataList) {&lt;br /&gt;    return $dataList;&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;    return false;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;That way the function just returns false if there are no results from the DataList::create query.&lt;/p&gt;&lt;p&gt;On your filter question, do you mean that you want the user to be able to filter the results based on Discipline? Depending on how many items there are, you could do this with a form, or you could just use css/jquery to show/hide each disclipline section.&lt;br /&gt;I would use the first is there were (or will be) lots of results, and I would use the second if there was only going to be a small number.&lt;br /&gt;Let me know how you want to do it and I'll see if I can help  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Sort GridField by Column | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/21131#post321626&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/21131&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 27 Apr 2013 20:25:30 +1200</pubDate>
			<dc:creator>RuthAdele</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/21131#post321626</guid>
		</item>
		
		<item>
			<title>Re: DayOfMonth not working in GroupedList</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23494#post321615</link>
			<description>&lt;p&gt;I fixed it by editing Agenda.ss:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;... &lt;br /&gt;&amp;lt;% if getAgendaView %&amp;gt; &lt;br /&gt;&amp;lt;% loop AgendaView.GroupedBy(Datum) %&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;lt;% loop Children %&amp;gt; &lt;br /&gt;&amp;lt;% if First %&amp;gt;&lt;br /&gt;&amp;lt;h2&amp;gt; $Datum.Nice&amp;lt;/h2&amp;gt; &lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;% end_loop %&amp;gt; &lt;br /&gt;&amp;lt;% end_loop %&amp;gt; &lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DayOfMonth not working in GroupedList | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23494#post321615&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23494&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 27 Apr 2013 01:20:49 +1200</pubDate>
			<dc:creator>quanto</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23494#post321615</guid>
		</item>
		
		<item>
			<title>Re: Sort GridField by Column</title>
			<link>http://www.silverstripe.org/data-model-questions/show/21131#post321612</link>
			<description>&lt;p&gt;Thanks so much for your reply RuthAdele (dont get many ha)&lt;/p&gt;&lt;p&gt;In the end I used:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class HMIBMemberPage_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $allowed_actions = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function init() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parent::init();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function MyHMIBMembers() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$data = DataObject::get(&quot;HMIBMember&quot;)-&amp;gt;sort('Discipline ASC');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $data;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;............template.ss&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% loop MyHMIBMembers %&amp;gt;&lt;br /&gt;  &amp;lt;li class=&quot;hmibmembers&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;% if MemberPicture %&amp;gt;&amp;lt;div id=&quot;memberpic&quot;&amp;gt;$MemberPicture.SetHeight(160)&amp;lt;/div&amp;gt;&amp;lt;% end_if %&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;lt;h2&amp;gt;$Name&amp;lt;/h2&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;lt;% if Website %&amp;gt;&amp;lt;a href=&quot;$Website.URL&quot; target=&quot;_blank&quot;&amp;gt;Website&amp;lt;/a&amp;gt;&amp;lt;% end_if %&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;lt;h3&amp;gt;$Discipline&amp;lt;/h3&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;lt;p&amp;gt;$Description&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;/li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;% end_loop %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I couldn't find an entire example telling me exactly where to put it, I need more practise but when people post code they assume you know and I didn't. &lt;/p&gt;&lt;p&gt;What does this do?&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$dataList ? false;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Now all I need to do is add a filter function so my results can be filtered by Discipline, any ideas how to achieve this on the front end via the user?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Sort GridField by Column | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/21131#post321612&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/21131&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 27 Apr 2013 00:07:47 +1200</pubDate>
			<dc:creator>pinkp</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/21131#post321612</guid>
		</item>
		
		<item>
			<title>Re: Sort GridField by Column</title>
			<link>http://www.silverstripe.org/data-model-questions/show/21131#post321598</link>
			<description>&lt;p&gt;If you're not adding a custom Sort Order, you should simply be able to loop over the DataObject in the template, i.e.&lt;br /&gt;&amp;lt;% loop Objects %&amp;gt;&lt;br /&gt;$Title, $Blah&lt;br /&gt;&amp;lt;% end_loop %&amp;gt;&lt;/p&gt;&lt;p&gt;But if you are displaying with the sort order, you need to write a function in your page controller:&lt;br /&gt;public function OrderedObjects() {&lt;br /&gt;    $dataList = DataList::create(&quot;Object&quot;);&lt;br /&gt;    $dataList-&amp;gt;sort(&quot;SortOrder ASC&quot;);&lt;/p&gt;&lt;p&gt;    return $dataList : $dataList ? false;&lt;br /&gt;}&lt;br /&gt;and then loop it the same in the template, but with &amp;lt;% loop OrderedObjects %&amp;gt;&lt;/p&gt;&lt;p&gt;Hope that helps  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Sort GridField by Column | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/21131#post321598&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/21131&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 26 Apr 2013 12:53:06 +1200</pubDate>
			<dc:creator>RuthAdele</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/21131#post321598</guid>
		</item>
		
		<item>
			<title>GridFieldFilterHeader functionality on front end?</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23558</link>
			<description>&lt;p&gt;Is it possible to create the same functionality as GridFieldFilterHeader() from the GridField in the CMS on the front end and how?&lt;/p&gt;&lt;p&gt;I just want users to be able to filter / search the data in pretty much exactly the same way... thanks&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: GridFieldFilterHeader functionality on front end? | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23558&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23558&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 26 Apr 2013 10:32:31 +1200</pubDate>
			<dc:creator>pinkp</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23558</guid>
		</item>
		
		<item>
			<title>Re: Sort GridField by Column</title>
			<link>http://www.silverstripe.org/data-model-questions/show/21131#post321581</link>
			<description>&lt;p&gt;How do you get it to keep this sort order from the CMS when looped in the template? (im not using drag n drop) I just want the order it appears in the CMS to translate to the front end..&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Sort GridField by Column | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/21131#post321581&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/21131&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 25 Apr 2013 23:29:16 +1200</pubDate>
			<dc:creator>pinkp</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/21131#post321581</guid>
		</item>
		
		<item>
			<title>Creating a new member</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23549</link>
			<description>&lt;p&gt;Is it possible to create/insert a new member in this manner?&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$o_member = new Member();&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;$a_data['Email'] = 'email@email.com';&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;$a_data['Password'] = '123456';&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;$a_data['FirstName'] = 'My FirstName';&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;$o_member-&amp;gt;update($a_data);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Creating a new member | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23549&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23549&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 25 Apr 2013 18:42:14 +1200</pubDate>
			<dc:creator>cachobong</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23549</guid>
		</item>
		
		<item>
			<title>Problem with subclasses and fields</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23543</link>
			<description>&lt;p&gt;I have a data object called ImageLink which extends DataObject and a data object called Promo which in turn extends ImageLink. In my page I have two has_many fields - one for ImageLinks and one for Promos.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;static $has_many = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;ImageLinks&quot; =&amp;gt; &quot;ImageLink&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;Promos&quot; =&amp;gt; &quot;Promo&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Since Promo inherits from ImageLinks, when I get/loop the ImageLinks items they also include the Promo items stored in the Promos field. Is this the intended behaviour? I'm not interested in getting any subclasses. When looping the ImageLinks i only wish to get the ImageLinks! I understand where the problem comes from, since all ImageLinks and Promos are stored in the same table in the database.&lt;/p&gt;&lt;p&gt;At the moment, I have to filter the ImageLinks array on &quot;ClassName&quot; = &quot;ImageLinks&quot;, but it would be better if this worked out of the box.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem with subclasses and fields | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23543&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23543&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 25 Apr 2013 03:25:02 +1200</pubDate>
			<dc:creator>Rodskagg</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23543</guid>
		</item>
		
		<item>
			<title>Re: get parent relation ID before writting the Object</title>
			<link>http://www.silverstripe.org/data-model-questions/show/21517#post321555</link>
			<description>&lt;p&gt;Just in case it helps anyone else...&lt;/p&gt;&lt;p&gt;It's not my preferred solution, but for now I'm going with...&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;if($this-&amp;gt;ID != 0) {&lt;br /&gt;//Do stuff here after record has been saved&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;//Record has never been saved...&lt;br /&gt;$field = TextField::create('Field')-&amp;gt;setTitle('Title')-&amp;gt;setDisabled(true)-&amp;gt;setValue('You can assign a this field once you have saved the record for the first time.');&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: get parent relation ID before writting the Object | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/21517#post321555&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/21517&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 25 Apr 2013 03:10:03 +1200</pubDate>
			<dc:creator>Andrew Houle</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/21517#post321555</guid>
		</item>
		
		<item>
			<title>Re: get parent relation ID before writting the Object</title>
			<link>http://www.silverstripe.org/data-model-questions/show/21517#post321552</link>
			<description>&lt;p&gt;Well ID is autoincrement, so in theory you can guess it on the object Creation, last ID+1 save it in field, then in onAfterWrite double check and pass it to the relation if its differnt.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: get parent relation ID before writting the Object | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/21517#post321552&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/21517&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 25 Apr 2013 02:23:41 +1200</pubDate>
			<dc:creator>zenmonkey</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/21517#post321552</guid>
		</item>
		
		<item>
			<title>Re: get parent relation ID before writting the Object</title>
			<link>http://www.silverstripe.org/data-model-questions/show/21517#post321550</link>
			<description>&lt;p&gt;Has anyone got this working? I'm trying to do the same thing.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: get parent relation ID before writting the Object | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/21517#post321550&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/21517&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 25 Apr 2013 02:16:58 +1200</pubDate>
			<dc:creator>Andrew Houle</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/21517#post321550</guid>
		</item>
		
		<item>
			<title>Re: Search and Sort: How to?</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23542#post321549</link>
			<description>&lt;p&gt;DataObject::get allows specify a sort...&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://api.silverstripe.org/3.0/source-class-DataObject.html#2692-2746&quot; rel=&quot;nofollow&quot;&gt;http://api.silverstripe.org/3.0/source-class-DataObject.html#2692-2746&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Search and Sort: How to? | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23542#post321549&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23542&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 25 Apr 2013 00:50:49 +1200</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23542#post321549</guid>
		</item>
		
		<item>
			<title>Search and Sort: How to?</title>
			<link>http://www.silverstripe.org/data-model-questions/show/23542</link>
			<description>&lt;p&gt;I just need a little guidance as to the correct way to achieve the following.&lt;br /&gt;I am creating a &quot;Members Directory&quot; (not members who have log in etc just a separate membership list).&lt;/p&gt;&lt;p&gt;Basically in the CMS you will add a &quot;Member&quot; they will have name, website, discipline, about paragraph, image.&lt;/p&gt;&lt;p&gt;1&amp;gt; Then what I need to know is how in the front end these can be sorted Alphabetically, and also the option to sort by Discipline.&lt;br /&gt;2&amp;gt; How can i create a search just for these members, i.e. I search for &quot;john smith poet&quot; and this will filter the results.&lt;/p&gt;&lt;p&gt;Currently looking at:&lt;br /&gt;&lt;a href=&quot;http://api.silverstripe.org/3.0/class-SearchContext.html&quot; rel=&quot;nofollow&quot;&gt;http://api.silverstripe.org/3.0/class-SearchContext.html&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://doc.silverstripe.org/framework/en/reference/modeladmin&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/framework/en/reference/modeladmin&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://blog.fraser-hart.co.uk/silverstripe-3-gridfield-with-many_many-relationship/#comment-1182&quot; rel=&quot;nofollow&quot;&gt;http://blog.fraser-hart.co.uk/silverstripe-3-gridfield-with-many_many-relationship/#comment-1182&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.ssbits.com/tutorials/2011/sorting-on-a-related-dataobject-in-modeladmin/&quot; rel=&quot;nofollow&quot;&gt;http://www.ssbits.com/tutorials/2011/sorting-on-a-related-dataobject-in-modeladmin/&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://doc.silverstripe.org/framework/en/topics/datamodel&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/framework/en/topics/datamodel&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://doc.silverstripe.org/framework/en/tutorials/5-dataobject-relationship-management&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/framework/en/tutorials/5-dataobject-relationship-management&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://doc.silverstripe.org/framework/en/tutorials/4-site-search&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/framework/en/tutorials/4-site-search&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Search and Sort: How to? | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/23542&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/23542&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 25 Apr 2013 00:15:30 +1200</pubDate>
			<dc:creator>pinkp</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/23542</guid>
		</item>
		
		<item>
			<title>Re: SS3 required fields on page</title>
			<link>http://www.silverstripe.org/data-model-questions/show/22794#post321544</link>
			<description>&lt;p&gt;In my case &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public function getCMSValidator(){&lt;br /&gt;        return new RequiredFields('Code', 'Name');&lt;br /&gt;    }&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;worked like a charm.&lt;br /&gt;I'm using SS3.0&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: SS3 required fields on page | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/show/22794#post321544&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/data-model-questions/reply/22794&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 24 Apr 2013 20:44:36 +1200</pubDate>
			<dc:creator>Ironcheese</dc:creator>
			<guid>http://www.silverstripe.org/data-model-questions/show/22794#post321544</guid>
		</item>
		

	</channel>
</rss>