XF 2.1 Conditional to check if the Logo field is empty

Dragonfruit

Well-known member
Licensed customer
Hi,
Is there a way to check if the logo field is empty, and it's not, display the logo, if it's empty, display something else.
 
Solution
HTML:
<xf:if is="!{{ property('publicLogoUrl') }}">
    No logo
</xf:if>

HTML:
<xf:if is="{{ property('publicLogoUrl') }}">
    Logo
<xf:else />
    No logo
</xf:if>
HTML:
<xf:if is="!{{ property('publicLogoUrl') }}">
    No logo
</xf:if>

HTML:
<xf:if is="{{ property('publicLogoUrl') }}">
    Logo
<xf:else />
    No logo
</xf:if>
 
Solution
Back
Top Bottom