Not a bug Strange behavior in template editor and its output

Aivaras

Active member
#1
One of my CSS templates contains this snippet:
Code:
.ctaBbcodeTable tr:hover
{
    background-color: @inlineMod;
}
If I 1) change "@inlineMod" to some other color, say, "yellow", 2) "Save All Changes", 3) undo the change (Ctrl+Z) in the editor window, and 4) hit the "Save All Changes" again, the template is marked red and saved as edited although it effectively contains no changes.

If I open the template again I get this view for the above-mentioned snippet:

01.png

If I hit "View Custom Changes" I get this view:

02.png

Now that is odd: what I see in the template editor as:
Code:
background-color:  background-color: @inlineMod;
is actually:
Code:
background-color: {xen:property inlineMod};
Any ideas what's going on here?
 
Last edited:

Aivaras

Active member
#2
Just a short follow-up on this issue.

I made a mistake of using "@propertyname" syntax in the add-on installation files where it should have been "{xen:property propertyname}".

Correcting that resolved the issue. The template editor view and View Custom Changes now show the same results.
 
Last edited:

Chris D

XenForo developer
Staff member
#3
Just a short follow-up on this issue.

I make a mistake of using "@propertyname" syntax in the add-on installation files where it should have been "{xen:property propertyname}".

Correcting that resolved the issue. The template editor view and View Custom Changes now show the same results.
Indeed. Under these conditions this has behaved how it was supposed to.
 
Top