Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Page Titles

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

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

Page: 1 2 3
Go to End
Author Topic: 6423 Views
  • Bandit
    Avatar
    Community Member
    10 Posts

    Re: Page Titles Link to this post

    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

  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    Re: Page Titles Link to this post

    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?

  • Bandit
    Avatar
    Community Member
    10 Posts

    Re: Page Titles Link to this post

    Sound good to me

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Page Titles Link to this post

    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

  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    Re: Page Titles Link to this post

    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.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Page Titles Link to this post

    Sweet.

    Thanks Andy for adding this into the core.

    Sean

  • Bandit
    Avatar
    Community Member
    10 Posts

    Re: Page Titles Link to this post

    Woot!

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Page Titles Link to this post

    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...

    6423 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.