Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Hamish 96 posts 154 karma points
    Apr 21, 2010 @ 05:31
    Hamish
    5

    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

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Apr 21, 2010 @ 11:39
    Lee Kelleher
    0

    Hmmm... interesting... I like the idea... I'll give it some thought!

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Apr 22, 2010 @ 23:35
    Lee Kelleher
    0

    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! :-)

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Apr 23, 2010 @ 10:20
    Dirk De Grave
    4

    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

     

     

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Apr 23, 2010 @ 10:47
    Stefan Kip
    3

    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 :-( ;-)

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Apr 23, 2010 @ 10:53
    Dirk De Grave
    0

    hey, what more can I say: great minds think alike? :D

     

    /Dirk

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Apr 23, 2010 @ 10:54
    Dirk De Grave
    0

    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

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Apr 23, 2010 @ 11:37
    Stefan Kip
    1

    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

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Apr 23, 2010 @ 11:53
    Lee Kelleher
    0

    Hi Stefan, I'm curious about the "bit more" too ... but yes, a little patience! :-)

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Apr 28, 2010 @ 23:36
  • Hamish 96 posts 154 karma points
    May 03, 2010 @ 04:51
    Hamish
    0

    Awesome!!! If you ask for it - it will be built within the week :) What a community

Please Sign in or register to post replies

Write your reply to:

Draft