Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey guys.
I have a requirement to overwrite the URL of a publised content to have in it the createDate (yyyyMMdd). For example:
From: /content/published-item/ (Create Date: 2016-06-10) To: /content/20160610/published-item/
What I could use to to it? I believe it might be something related having a custom UrlProvider.
Thanks, Diego
Hi Diego,
yes this can be achieved with an UrlProvider and ContentFinder.
Have a look here: http://24days.in/umbraco/2014/urlprovider-and-contentfinder/
Regards David
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Overwrite URL published content to contain the createDate (yyyyMMdd) in the url
Hey guys.
I have a requirement to overwrite the URL of a publised content to have in it the createDate (yyyyMMdd). For example:
From: /content/published-item/ (Create Date: 2016-06-10) To: /content/20160610/published-item/
What I could use to to it? I believe it might be something related having a custom UrlProvider.
Thanks, Diego
Hi Diego,
yes this can be achieved with an UrlProvider and ContentFinder.
Have a look here: http://24days.in/umbraco/2014/urlprovider-and-contentfinder/
Regards David
is working on a reply...