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.

Customising the CMS

Editing the meta-data URL


Reply

2 Posts   972 Views

Avatar
theGermaniac

18 January 2010 at 11:19pm Community Member, 82 Posts

Hi,

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

Avatar
MateuszU

19 January 2010 at 9:05am Community Member, 89 Posts

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.