I was more suggesting a solution that didn't require hacking the code - I would have thought having a custom title would be a pretty wide-spread requirement of any website :P
Well, it's more of a bug fix than a hack - that's the way it was supposed to be done, it was just broken.
But you're right, there should be somewhere in the CMS to set/edit site-wide variables, like the site name, tag-lines etc. Maybe also setting default Meta-data that individual pages can append their keywords etc to. Clicking on the "Site Content" globe in the tree seems like a logical place to me.
Didn't I read somewhere that someone's working on a GUI for editing _config.php stuff?
Sound good to me :)
It's not always the optimal solution to move everything from _config.php to a GUI, especially one that your clients can access. ;-) (like letting them change the project code, which would be bad).
But you're right, ones that should be global like the name of the site could be accessed in the CMS directly, leaving the _config.php for more core configuration.
Yeah, that was my thinking - you only want the GUI to be able to edit certain settings - namely those that the client should actually care about or have a reason to change. You'd probably want the developer to define what can and can't be set by the client.
Thanks Andy for adding this into the core.
Any chance this still works in the new rc1?
I know I can set the title in the metatags tab, but I want what's done here: put the name of the site in front of the 'page' title.
I put this in my page.ss:
<title>$Title.XML - $SiteName</title>
and this in _config.php
$SiteName = "MySiteName";
But it doesn't seem to work...