RSS Feed/News How to use data in xf css syntax

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
27,640
Points
823

Reputation:

I need to change css according to database checkbox value.

What's the best approach to get that?

e.g. (no idea how)
Code:

Code:
<xf:css>
    <xf:if is="{$item.status} == 1">
        .myclass {
             display: none;
          }
    <xf:else />
         .myclass {
             display: block;
          }
    </xf:if>
</xf:css>

Continue reading...
 
Status
Not open for further replies.
Top