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

<xen:include> in TMC replacement.

Discussion in 'XenForo Development Discussions' started by Liam W, Oct 11, 2013.

  1. Liam W

    Liam W Well-Known Member

    I have a <xen:include> tag in a TMC replacement, and it works fine, however when I edit the template that is being included, the changes aren't reflected in the modified template.

    I've tried disabling and re-enabling the modification, but the same thing still applies.

    Any help? Will I have to remove and re-add the template modification to make it update?

    Liam
     
  2. Liam W

    Liam W Well-Known Member

    Ok, I even tried removing the modification and re-adding it and it still didn't work?!?!

    Why isn't it updating changes to the included template?
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    This should work.

    My first instinct is to check you are updating the template in the correct style, or indeed if you're editing the Master style that you haven't made modifications to that template in another style.
     
  4. Liam W

    Liam W Well-Known Member

    I'm modifying it in the master style, like usual. I even exported everything and re-imported it to my live forum, and it still isn't using the correct template, or if it is it's using an old version...
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    Old version, that's what I mean.

    If you've edited it in a child style, e.g. the Default Style then changes won't take effect.

    I've just done a test on my own stuff and if I edit a template that is included via a TM replacement in the Master Style it is updated fine.

    The only exception is if you have some sort of caching. So disable any caching you might have and try again.

    If it's still not working, it's still going to be something very simple such as an outdated child template (check Appearance > Customised Components), or you're editing the wrong template or some other issue.

    It should definitely just work.
     
  6. Liam W

    Liam W Well-Known Member

    I only edit it in the master style, and the TM replacement is done to the master style as well. My local board doesn't have any caching mechanism set up, so I have no idea why it isn't working.
     
  7. Chris D

    Chris D XenForo Developer Staff Member

    Probably worth packing it up and posting it here. Without the code I have no idea either.
     

Share This Page