Tutorials

Extending FullTextSearch for DataObjects  »Read more

Posted by Mo on 17 June 2011 | 7 Comments

Tags: , ,

I have been wrestling over the problem of extending the default search functionality in Silverstripe to not only search Page objects, but other DataObjects as well.

7 comments | Read more

Getting an image from a sub level pages top level parent.  »Read more

Posted by Mo on 4 March 2010 | 6 Comments

Tags: ,

Quite a simple one this time, but something I feel is worth posting up. On a recent project, I needed to add the ability for the site editors to be able attach an image to any page on the site that sits at the root level of the Site Tree. Any children (grandchildren, etc) of these pages however had to also inherit this image.

6 comments | Read more

Silverstripe DataObjectSet and Templates  »Read more

Posted by Mo on 3 February 2010 | 6 Comments

Tags: ,

For some reason, I always forget how to generate a custom DataObjectSet in a Silverstripe method, that I can then return to my template to correctly render in a control loop. Because of this, I am going to write an example tutorial, using my Twitter RSS feed and SimpleXML (which should be part of the PHP5 core for most installs) as an example.

6 comments | Read more