Russ
Well-known member
- Affected version
- 2.2 Beta 6
In 2.2 I had a very simple conditional like this:
It simply checked if this property had a logo:
Worked fine.
The same conditional does not work with "Enable variations" on the property.
You can easily test it using the 2x logo URL (leave it blank)
"test" will always show even though no images have been uploaded to the property.
Code:
<xf:if is="property('xbFooterLogo')">
<a href="{{ ($xf.options.logoLink && $xf.homePageUrl) ? $xf.homePageUrl : link('index') }}">
<img src="{{ base_url(property('xbFooterLogo')) }}" alt="{$xf.options.boardTitle}" width="{{ property('footerLogoWidth') ?: '' }}" height="{{ property('footerLogoHeight') ?: '' }}" />
</a>
</xf:if>
It simply checked if this property had a logo:
Worked fine.
The same conditional does not work with "Enable variations" on the property.
You can easily test it using the 2x logo URL (leave it blank)
Code:
<xf:if is="property('publicLogoUrl2x')">test</xf:if>
"test" will always show even though no images have been uploaded to the property.