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

Fixed 1.2b4 Style properties syntax in WebDav

Arty

Well-known member
#1
There is a difference when XenForo is parsing @whatever and {xen:property whatever} for background color inside style property in WebDav - first one is being parsed correctly, while second one isn't.

Example:
Code:
@property "test";
background: {xen:property pageBackground} url('{xen:property imagePath}/xenforo/layout/pattern.png') repeat top;
@property "/test";
and
Code:
@property "test";
background: @pageBackground url('@imagePath/xenforo/layout/pattern.png') repeat top;
@property "/test";
That code is the same, the only difference is syntax. After saving template via WebDav using first syntax and checking style property in admin control panel, background of property "test" will have following values:

background-color: transparent
background-image: {xen:property imagePath}/xenforo/layout/pattern.png

After saving template using second syntax and checking style property in admin control panel, background of property "test" will have following values:

background-color: @pageBackground
background-image: @imagePath/xenforo/layout/pattern.png

I'm not sure if this bug applies only to background color.
 

Kier

XenForo Developer
Staff member
#2
I'm not sure if I'm missing something, but I've been using this to test...
Code:
.something
{
    @property "testy";
    background: @pageBackground url('@imagePath/whatever.png') no-repeat;
    @property "/testy";
}
and it's been working just fine..?

Screen Shot 2013-07-05 at 11.28.10.png
 

Arty

Well-known member
#4
After saving property with alternative syntax, refresh style property in admin control panel:
webdav03.png
webdav04.png


and this is how it looks like with usual syntax (note background color difference):
webdav01.png
webdav02.png