Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page Titles


Reply

19 Posts   6449 Views

Avatar
Bandit

2 August 2007 at 10:09am (Last edited: 2 August 2007 10:10am), Community Member, 10 Posts

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

Avatar
Nathan Cox

2 August 2007 at 10:16am Community Member, 99 Posts

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?

Avatar
Bandit

2 August 2007 at 11:32am Community Member, 10 Posts

Sound good to me :)

Avatar
Sean

2 August 2007 at 12:33pm (Last edited: 2 August 2007 12:33pm), Forum Moderator, 921 Posts

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.

Cheers,
Sean

Avatar
Nathan Cox

2 August 2007 at 12:38pm Community Member, 99 Posts

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.

Avatar
Sean

2 August 2007 at 11:47pm Forum Moderator, 921 Posts

Sweet. :-)

Thanks Andy for adding this into the core.

Sean

Avatar
Bandit

3 August 2007 at 1:19pm Community Member, 10 Posts

Woot!

Avatar
dio5

20 September 2007 at 12:57am Community Member, 501 Posts

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>
$MetaTags(false)

and this in _config.php

global $SiteName;
$SiteName = "MySiteName";

But it doesn't seem to work...