Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Editing the meta-data URL

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

Page: 1
Go to End
Author Topic: 956 Views
  • theGermaniac
    Community Member
    82 Posts

    Editing the meta-data URL Link to this post


    is there a way to edit the meta-data URL? I want something like my-site/news/2009/article-title/ because in one of our current projects the news title often is similar to a products page title and I'm afraid, the client won't pay so much attention to this issue then we do.

    Thanks for any help in advance.

    Cheers, Mario

  • MateuszU
    Community Member
    89 Posts

    Re: Editing the meta-data URL Link to this post

    If you are using 2.3.4, then the url structure will be flat, ie there is no nesting of urls. First segment always links to a page and the next segments are parsed as parameters to the request.

    With 2.3.4 you would need to create the custom pagetype (NewsProviderPage, or whatever you call it) and configure routing so 2009 and article-title are used to display the article. You need to implement the logic yourself though, and everything would need to happen within the NewsProviderPage.

    Other solution is 2.4 upgrade and enabling nested urls. Then you would create the holder named 'news', then under that a holder named 2009, and then under that you would put articles. Caveat: nested urls and 2.4 are not stable version, although we are using them for several projects and they seem pretty usable. Might be worth a try in your case.

Page: 1
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.