1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot Reproduce Import template with duplicate name

Discussion in 'Resolved Bug Reports' started by zenlan, Nov 30, 2010.

  1. zenlan

    zenlan New Member

    Original templates:

    /default
    ->mydefault​
    /newtemplate

    I exported 'newtemplate' (filename: 'style-newtemplate.xml')

    Imported 'style-newtemplate.xml' as child of 'mydefault'. Thinking that I might either be prompted to rename it or end up with two called 'newtemplate', like so:

    /default
    ->mydefault​
    ->newtemplate​
    /newtemplate

    However, no prompt to rename and I ended up with this instead:

    /default
    ->mydefault​
    ->newtemplate​
    ->newtemplate​

    You can see that as well as a new template created, the original 'newtemplate' has gone from top-level to a child of 'mydefault'.

    I was able to delete one of the 'newtemplates', the other was left intact.

    I gather that if I had edited the title in the xml and/or the filename the original template would not have been kidnapped?

    Not a showstopper, wasn't sure what behaviour to expect really. Might just require documentation rather than 'fixing'. (Perhaps it is documented already? Searched but couldn't find anything.)

    Cheers for the hard work, styling has become fun again!
     
  2. Mike

    Mike XenForo Developer Staff Member

    I'm a little confused. Can you show a screenshot of your style hierarchy after the import? Can you also show a screenshot with the 2 templates in the list? (Presumably showing next to each other?)
     
  3. Floris

    Floris Guest

    How did you import them, directly into like the db, or via xenforo, as .xml file?
     
  4. zenlan

    zenlan New Member

    Sorry, I deleted the duplicate so no screen shot.

    I have tried to recreate the scenario using brand new templates and I can't. There may have been something odd about my edited template.

    Oh well, close this and I'll be sure to prtscrn if anything like it happens again. I'm not imaging it, honest! :D
     
  5. zenlan

    zenlan New Member

     
  6. Floris

    Floris Guest

    Ah ok, thanks :)
     

Share This Page