Copied to clipboard

Flag this post as spam?

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


  • Jonathan Baez 9 posts 79 karma points
    Mar 06, 2017 @ 10:35
    Jonathan Baez
    0

    Change title, but keep URL

    I created a news item and published it on my site.

    Later on I noticed a miss spelling in the title.

    Now I want to change the title, but I want to keep the URL.

    How do I do this?

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Mar 07, 2017 @ 15:19
    Dennis Adolfi
    1

    Hi Jonathan.

    Yes, as you've noticed the URL segments ar built based on the content Name, and if you change the Name of a node you also change the url.

    Howerver, you can get around this by addding a property to you document type (in your case the news item doctype) called umbracoUrlName, see image:

    enter image description here

    Using this property, you can override the name used in the url segment. See example:

    enter image description here

    So in your example, change the Name to the new correctly spelled name, and then change the umbracoUrlName to the missspelled name, and you will keep the same url as you had before, but with a new Name.

    Hope this was helpful to you!

  • Jonathan Baez 9 posts 79 karma points
    Mar 08, 2017 @ 08:31
    Jonathan Baez
    0

    Thanks for the reply. It makes sense.

    However, my Umbraco does not look entirely similar to yours. I don't know if that has any impact on the function, but when I do what you describe, the link does not change.

    Why is that?

    I'm working in the Umbraco version 7.2.1.

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Mar 08, 2017 @ 09:54
    Paul Wright (suedeapple)
    0

    Whats the "Title" of the news (aka Node Name), and what value have you got in your umbracoUrlName property field?

  • Jonathan Baez 9 posts 79 karma points
    Mar 08, 2017 @ 10:00
    Jonathan Baez
    0

    I changed it back to how it was from the beginning. This is how it looks now. Issue is that engage has been misspelled in the title. I want to change that, but keep the URL. I have tried to update the umbracoUrlName as suggested, but the url only changes if I change the title.

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Mar 08, 2017 @ 11:02
    Paul Wright (suedeapple)
    0

    I dont think you have created the new property type.

    Go to SETTINGS

    Click on your NewsItem Document Type, and add a new property called "Umbraco Url Name". You can put this in any TAB, but usually you'd put it in the General Props tab.

    Ensure the text next to the padlock, says "umbracoUrlName"

    Save the document type.

    Now go back to your news item, and you should be able to enter a value for the URL.. Click Save and Publish, and Umbraco will use the text from your umbracoUrlName to construct the Url

  • Jonathan Baez 9 posts 79 karma points
    Mar 08, 2017 @ 11:50
    Jonathan Baez
    0

    Hi again,

    I forgot to add this screendump. This is where I changed the Umbraco Url Name without any luck. Basically made the entire proces that you describe above.

    enter image description here

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Mar 08, 2017 @ 11:55
    Paul Wright (suedeapple)
    0

    You need to populate the Umbraco Url Name, with something. Try something like

    I Should have Updated By Now
    

    Try that, and click "save and publish"...

    And then see if the URL has changed for the node (Link to Document)

  • Jonathan Baez 9 posts 79 karma points
    Mar 08, 2017 @ 11:58
    Jonathan Baez
    0

    Just tried, but the url stays the same.

    Already tried it many times, with the same result.

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Mar 08, 2017 @ 12:07
    Paul Wright (suedeapple)
    0

    Ok, go to "Settings" section.

    Go to your "NewsItem" document type, and ensure the property alias for "umbracoUrlName" is 100% correct. No spaces, and has the correct casing..

    umbracoUrlName
    
  • Jonathan Baez 9 posts 79 karma points
    Mar 08, 2017 @ 12:39
    Jonathan Baez
    0

    Like this?

    enter image description here

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Mar 08, 2017 @ 12:42
    Paul Wright (suedeapple)
    0

    Yeah - that looks good to me :)

    Give it a whirl

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Mar 08, 2017 @ 12:47
    Paul Wright (suedeapple)
    0

    Although, it looks like you added that to the CSS tab.

    The document most probably inherits from a 'master document'. Ensure that is correct first :)

  • Jonathan Baez 9 posts 79 karma points
    Mar 08, 2017 @ 12:51
    Jonathan Baez
    0

    It will not allow me to create the property as apparently the property already exist. However, I cannot find it anywhere.

    On the verge of giving up :D

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Mar 08, 2017 @ 12:58
    Paul Wright (suedeapple)
    100

    Don't give up :-)

    When it works, you can order yourself a large hipster latte

    The property, will probably inherit from one of these documentTypes... (looking at your screenshot)

    #News
    #Document
    
  • Jonathan Baez 9 posts 79 karma points
    Mar 08, 2017 @ 13:08
    Jonathan Baez
    0

    Yeeeees I did it! Thanks a lot for the help man!

    I owe you a large hipster latte!

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Mar 08, 2017 @ 13:11
    Paul Wright (suedeapple)
    1

    Nice one!

Please Sign in or register to post replies

Write your reply to:

Draft