Archive: October, 2015
Sort Tags by popularity, or: how to sort a DataObject by count of many_many relation
Today I did some minor updates on a site with a blog and wanted to show the most popular tags.
Read more about 'Sort Tags by popularity, or: how to sort a DataObject by count of many_many relation'...
Read more about 'Sort Tags by popularity, or: how to sort a DataObject by count of many_many relation'...
Silverstripe 3.2: clean up the CMS
As seen in this interesting talk about useful Silverstripe Modules (video) at StripeCon15 it's possible to add some extra css to LeftAndMain to style the backend experience.
Read more about 'Silverstripe 3.2: clean up the CMS'...
Read more about 'Silverstripe 3.2: clean up the CMS'...
Howto fix "PDOException: SQLSTATE[HY000] [2002] No such file or directory"
Sometimes everything works fine in the browser and then you want to make a job using CLI and get an error:
Read more about 'Howto fix "PDOException: SQLSTATE[HY000] [2002] No such file or directory"'...
Read more about 'Howto fix "PDOException: SQLSTATE[HY000] [2002] No such file or directory"'...
Retrieving some DataObjects in template without php getter
When trying to get e.g. the lastest blog posts in your template you normally create a getter for theese in php like:
Read more about 'Retrieving some DataObjects in template without php getter'...
Read more about 'Retrieving some DataObjects in template without php getter'...