Copied to clipboard

Flag this post as spam?

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


  • Fredrik Esseen 610 posts 906 karma points
    Nov 02, 2012 @ 15:57
    Fredrik Esseen
    0

    Allow same node name

    Hi!

    Should know this but but totally forgot how to do it..

    I have a system where users can create nodes and if they do add a node with the same name a (1) is added in the end.

    Is is possible to allow same name and how?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 02, 2012 @ 16:35
    Jan Skovgaard
    0

    Hi Froad

    I'm not sure why you would want to allow for the same nodename in the same branch? However you should be able to disable the adding of (1) in the end by setting this to false <ensureUniqueNaming>True</ensureUniqueNaming> in the umbracoSettings.config file.

    Hope this helps :)

    /Jan

  • Fredrik Esseen 610 posts 906 karma points
    Nov 05, 2012 @ 09:35
    Fredrik Esseen
    0

    Thx!

    The reason is that im using the name of the node as name of a company that is listed in a dropdown. The problem was that there could be duplicate versions of the company depending on the different locations in the same company. So I have to allow creating the same company twice, but different company details.

    If I thought about that from the beginning I would have created it differently :)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 05, 2012 @ 11:25
    Jan Skovgaard
    0

    Hi Froad

    You're very welcome.

    Must admit that I don't know what kind of trouble this move could cause in the sense of how Umbraco is handling routing from 4.9 and below though.

    But can't you add a streetname to the nodename...like "Company, Streetname" to ensure unique naming? Or something that makes sense and could perhaps give a SEO boost?

    /Jan

  • Fredrik Esseen 610 posts 906 karma points
    Nov 06, 2012 @ 08:09
    Fredrik Esseen
    0

    That is the solutions that we now use :)

    I realized that there can only be problem with nodes of the same name. hard to administrate too.

    Thx!

Please Sign in or register to post replies

Write your reply to:

Draft