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

Copy all templates from one style to another

Discussion in 'XenForo Questions and Support' started by Numenorean7, Feb 24, 2011.

  1. Numenorean7

    Numenorean7 Member

    Hi there,

    Over the past months I customized my default theme and I now created a brand new one. But... all those templates I modified aren't showing up in my new theme and I know it is normal.

    My question is, is there a way to copy those modified/added templates from one style to another, without copying them one by one ?

  2. Russ

    Russ Well-Known Member

    If you just started the new style I guess you could export your current one with the extra templates, then import it under a different name. Not sure if that's what you're trying to achieve though.
    Vladislav Rastrusny likes this.
  3. Numenorean7

    Numenorean7 Member

    Wait, I just opened the style's XML file with Wordpad and there's a <Templates> section! I'll give it a try.
  4. Numenorean7

    Numenorean7 Member

    Hmm it doesn't work, I'll need to recreate or modify every templates in my new styles in order to recreate the content blocks I added to the home page.

    Thanks though.
  5. ToDie4

    ToDie4 Well-Known Member

    Export the style you wish to duplicate, then rename that style on your system by placing a '#' before its name, then import the xml you exported, now rename the style you just imported from your style manager, make the changes for style path and the logo path, then rename the original style back ti its own name by removing the '#'.

    Hopefully in time we will have the option to import a style under a new name, for now this method works well enough.

    To take care though, be sure you do not have errors in the style you are exporting or you shall only compound on those errors through duplication, this is true for importing a style under a new name of course.
    Vladislav Rastrusny likes this.
  6. Numenorean7

    Numenorean7 Member

    Alright, thanks for your reply!

    I did the job manually by modifying most templates I had to. It looks fine now, I'm going to bed ;)
  7. ToDie4

    ToDie4 Well-Known Member

    Good night, I hope you sleep well. :)

Share This Page