Here's how i've used the package in combo with an event handler that fires on BeforePublish:
- Get the current url using NiceUrl() which looks up the *previous* url from the cache and append it to the list of url's (if not yet in list) in your specified property.
Event handler will work as intended if user publishes node from content tree and from the publish icon. But may have some limitations for the moment:
- Publishing a single node using the 'publish icon' or from content tree may not update the property of the child nodes, which also get a new path if name of the parent node changes
Also haven't really checked currently if publishing a node (and checking the 'publish child nodes' in de dialog from the context menu) does update all child nodes, altho thinking that the BeforePublish will also be fired for the child nodes in that case.
Patience patience! You don't have to wait till next week to use your own implementation, I'm just trying to say: do NOT implement this feature in this package, because I've already created it ;-)
Can this become an automatic process when updating the page name
When you rename a Page Name, it would be ideal if the old url can automatically be added to umbraco301MovedPermanently.
It may be benefical if multiple urls can be added to the field
Hmmm... interesting... I like the idea... I'll give it some thought!
Still thinking about this... just can't figure out how to 'know' when the page name (url name), or "umbracoUrlName" has changed.
Time for some community brainstorming? All suggestions welcome! :-)
Hi Lee,
Here's how i've used the package in combo with an event handler that fires on BeforePublish:
- Get the current url using NiceUrl() which looks up the *previous* url from the cache and append it to the list of url's (if not yet in list) in your specified property.
Event handler will work as intended if user publishes node from content tree and from the publish icon. But may have some limitations for the moment:
- Publishing a single node using the 'publish icon' or from content tree may not update the property of the child nodes, which also get a new path if name of the parent node changes
Also haven't really checked currently if publishing a node (and checking the 'publish child nodes' in de dialog from the context menu) does update all child nodes, altho thinking that the BeforePublish will also be fired for the child nodes in that case.
Cheers,
/Dirk
I'm working on a package (releasing it early next week) which does exactly this (and a bit more)...
I hope you guys can wait for me to release it, else I did all the work for nothing :-( ;-)
hey, what more can I say: great minds think alike? :D
/Dirk
Oh, btw, can't week till next week, due date is... today... but still looking forward to it, so what's the "a bit more" then?
/Dirk
Haha you'll see Dirk :)
Patience patience! You don't have to wait till next week to use your own implementation, I'm just trying to say: do NOT implement this feature in this package, because I've already created it ;-)
Love the Umbraco community hehe
Hi Stefan, I'm curious about the "bit more" too ... but yes, a little patience! :-)
And here it is :D
http://our.umbraco.org/projects/301-url-tracker
Awesome!!! If you ask for it - it will be built within the week :) What a community
is working on a reply...