How can i change node url format ("localhost:56752/post/2014/january/09/test-for-node-url/") of ublogsy post to "localhost:56752/test-for-node-url/". Is it possible..?
I also would like an answer to this. I can't seem to disable the year / month / day sorting even though I've disabled it in the config. What other option do I have? I'd rather not have people seeing such long URLs.
Change URL format of ublogsy post node
Hello..
How can i change node url format ("localhost:56752/post/2014/january/09/test-for-node-url/") of ublogsy post to "localhost:56752/test-for-node-url/". Is it possible..?
I also would like an answer to this. I can't seem to disable the year / month / day sorting even though I've disabled it in the config. What other option do I have? I'd rather not have people seeing such long URLs.
Hello,
This is possible if you are using Umbraco 6.1 or higher. You need to use a UrlProvider and IContentFinder.
In the Hybrid Framework I have an example where I add a date to the news url. You need to do something similar:
https://github.com/jbreuer/Hybrid-Framework-for-Umbraco-v7-Best-Practises/blob/master/Umbraco.Extensions/UrlProvider/NewsUrlProvider.cs
https://github.com/jbreuer/Hybrid-Framework-for-Umbraco-v7-Best-Practises/blob/master/Umbraco.Extensions/ContentFinder/NewsContentFinder.cs
Jeroen
is working on a reply...