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

XF 1.2 So how does the TM work?

Code Monkey

Well-known member
#1
I added a simple template modification that I am using on my 1.1.5 site with TMS to the 1.2 Template modifier and it doesn't work. It says compilation error. Yet when I hit the test button it shows it as working.

Any ideas?
 
Last edited:

Code Monkey

Well-known member
#3
Nothing. It's my own template edit to change the footer. I made a fake mod and added it to that to see if mod is required but it still doesn't work.
 

Code Monkey

Well-known member
#4
Footer

Find
Code:
</div>
</xen:hook>
Replace
Code:
<div id="footBlock">
    <div class="pageWidth">
        <div class="pageContent">
            <span class="helper"><xen:if is="@xeno_fluid"><xen:include template="xeno_fluid_text_resizer" /></xen:if> </span>
        </div>
    </div>
</div>

</div>
</xen:hook>
 

Code Monkey

Well-known member
#5
error

Code:
footer    Master Style    Compiler error (may be from another template modification)    -
footer    XenoMorph Framework    Compiler error (may be from another template modification)
It's not actually showing an error for the xenfracture template I am using. Those two above are not selectable so I figured that may be why for them.
 

Code Monkey

Well-known member
#6
I also checked to see if the actual template was checked to disallow modifications and it's not. I then checked if it's modified and it shows my modification.
 

Mike

XenForo developer
Staff member
#7
The "xeno_fluid" property won't exist in the master, so your if tag will be invalid -- the same thing would happen if you tried to edit the master template manually. You could do "{xen:property xeno_fluid}" explicitly, though you're still making a modification that depends entirely on a single style.

Given what you're doing, you should just make a child style of the XenoMorph framework and use the merging tools to bring in updates when necessary.
 

Code Monkey

Well-known member
#8
I am trying to edit the child of the xenomorph framework. It doesn't show up in the error list but it doesn't display either. Why is there no style specific choice for this anyway?
 

Chris D

XenForo developer
Staff member
#9
Think of the TM System as more of a developer's tool for creating add-ons.

This is relevant:

The whole mentality of "TMS is essential because I can't edit templates" is now void.

It's pretty safe to make template edits directly, now. Even editing CSS can now be done directly instead of using EXTRA.css.

The new template diff merge system is awesome. So. Use template edits.

Where you can't use template edits, of course is for add ons. Which is why the TM system is very important still.
 

Code Monkey

Well-known member
#12
I took this bit out and it works so that code must have changed.

Code:
<span class="helper"><xen:if is="@xeno_fluid"><xen:include template="xeno_fluid_text_resizer" /></xen:if> </span>
 

John

Well-known member
#13
I took this bit out and it works so that code must have changed.

Code:
<span class="helper"><xen:if is="@xeno_fluid"><xen:include template="xeno_fluid_text_resizer" /></xen:if> </span>
Where did you see that code? In the framework or xenFracture? I have eliminated the fluid text feature from the framework in 1.2 (it was never fully implemented) and thought I got rid of all references to it in the templates.
 

Code Monkey

Well-known member
#16
yeah. I was trying to do a template replacement in the new version that I did in the old and thus the error. All fixed now that I realize you changed some stuff. I'm a little slow right now with a muscle torn in my shoulder. Pain is clogging my brain. lol
 

Chris D

XenForo developer
Staff member
#17
@Mike

This is just a thought... Is the 3 way merging system worth an additional HYS with an emphasis on getting people into the mentality that template edits are no longer taboo?

I know you're busy enough but it could be useful :)
 

Jeremy

Well-known member
#19
@Mike

This is just a thought... Is the 3 way merging system worth an additional HYS with an emphasis on getting people into the mentality that template edits are no longer taboo?

I know you're busy enough but it could be useful :)
I think it was pretty well covered in the HYS its already mentioned in.
 

Chris D

XenForo developer
Staff member
#20
I agree.

But no one seems to understand its significance. Too many people still find editing templates to be something they shouldn't do, and think they need the TM system for it.