1. Sitesettings PreviewI have been experimenting with extending LeftAndMain in Silverstripe CMS and wrote a little module that allows for easy adaptation for settings/variables that aren't really related to pages.

    Currently stuff like SiteName or Tagline are just hardcoded in the templates and I've heard quite some people asking 'where can we set this?'. While you can easily make a table for it on for example the homepage in the 'Site Content' part of the CMS, I thought it would be useful to have a different section 'Site Settings' for it, so my journey began.

    There's not so much information to find about how to do this, so I based myself on what I found in existing code (CommentAdmin) and one tutorial that explains a bit about extending LeftAndMain.

    The module I created has a few options in how you add extra fields, everything should be explained in the README file. If you still have questions after reading it, feel free to email me.

    As I created this in trial and error, I can't promise it is bug-free, so use at own risk and let me know what goes wrong :)

    Download the module here.

    Permalink

  2. May 26 2008

    I upgraded my Silverstripe install to the latest 2.2.2 version and migrated the blog from just custom code pages to the article module I wrote, which has a few advantages.

    Big chance some things might still be broken or behave strange. I had a few hacks in the core which I didn't re-apply, so if you notice anything weird, please tell me.

    Permalink