Copied to clipboard

Flag this post as spam?

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


  • HuaweiP9User 31 posts 122 karma points notactivated
    Jul 05, 2018 @ 13:08
    HuaweiP9User
    0

    Duplicate templates name problem

    I'm getting problems when I create a template, and after that create a template with the same name and same level (not under Master temp), Umbraco create multiple temps with the same name and add some char at the end of file name like numbers.

    How can I fix this?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jul 05, 2018 @ 13:16
    Jan Skovgaard
    100

    Hello

    It's not something that can be fixed since you can't have 2 templates at the same level with the same name. Therefore Umbraco is changing the name to avoid the original template to be overwritten, which will mean you loose the code that was in there.

    What is your scenario for needing 2 templates with the same name?

    /Jan

  • HuaweiP9User 31 posts 122 karma points notactivated
    Jul 05, 2018 @ 15:15
    HuaweiP9User
    0

    Let's say if some of users doesn't check if that template with the same name exsist like the new one is trying to make, (already exsist Umbraco and he try to make new one Umbraco), my idea there is to compare both files old Umbraco (already registered) and new Umbraco, and then is that files is different (content) add the different content to old Umbraco and the new one doesn't register or at the same moment when the content would be update, delete new one.

Please Sign in or register to post replies

Write your reply to:

Draft