Copied to clipboard

Flag this post as spam?

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


  • Saif Obeidat 79 posts 296 karma points
    Dec 30, 2019 @ 14:41
    Saif Obeidat
    1

    Check if a node with a certain name already exists before saving/publish a new one with the same name

    Hi,

    How to implement a validation while creating a node to prevent users from creating a node that is a duplicate from existing ( Two nodes with same name )

    I want to prevent the saving/publishing process and to show a warring message for him

    Thanks.

  • Marcio Goularte 389 posts 1362 karma points
    Dec 30, 2019 @ 14:51
    Marcio Goularte
    0

    Hi Saif,

    what version?

  • Saif Obeidat 79 posts 296 karma points
    Dec 30, 2019 @ 15:13
    Saif Obeidat
    0

    Hi Marcio, I am using Version 8.4

  • Marcio Goularte 389 posts 1362 karma points
    Dec 30, 2019 @ 17:24
    Marcio Goularte
    101

    have this code that prevents duplicate urls for umbraco 7.

    https://gist.github.com/marciogoularte/aa36bf9db618ec05fec76e856e693f84

    It may be possible to adapt to umbraco 8 to validate the name

    https://our.umbraco.com/Documentation/Getting-Started/Code/Subscribing-To-Events/

  • Saif Obeidat 79 posts 296 karma points
    Jan 01, 2020 @ 07:55
    Saif Obeidat
    0

    Hi Marcio,

    Thanks, yes as you said it seems it can be adapted to Umbraco8.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies