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.
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?
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.
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?
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
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.
is working on a reply...