Tutorials » CMS
19
Apr
10
2.4 - Working with SiteConfig
One of the great new features of 2.4 is the introduction of a Site Config page. This allows you to put all of those fields which are not page related, such as The sites title, root access permissions and even the current theme. The SiteConfig class is simply a dataobject and so can easily be extended to include fields, relationships and functions which you can then access from anywhere in your site.
Accessing items in your SiteConfig is as easy as preceding each item with $SiteConfig. For example this would display the Title field:
Read More >>01
Sep
8
Adding a CMS action the (slightly) hacky way
If like me you cannot figure out how on earth to use the updateCMSActions() function in a decorator and you also can't get the getCMSActions() function to find your custom method inside the controller then here is a way to make it work, which although certainly not the 'correct' way to do it, still does not require any editing of the core files and is not particularly messy.
Read More >>