RichardKYA
Well-known member
Hello,
Does anyone know how to call style fields using xen:if?
I know how to call customFields using
<xen:if is="{$visitor.customFields.header_color} == 'blue'">
but what I would like is to call a created style field.
<xen:if is="{$visitor.__________.________} == 'style name'">
where I've left it blank is the part I don't know and the "style name" is the actual name shown and not the field name because I don't know how to call this either.
Does anyone know the fields I need?
The reason is, I am allowing users to have some header color choices, but I have also created a "Night Mode" Style which makes everything darker, so I would like this to "overwrite" any header color and make it dark also.
So, if possible I would like something like this:
<xen:if is="!{$visitor._______.______} == 'Night Mode' AND {$visitor.customField.header_color} == 'blue'">
CODE HERE
</xen:if>
Basically, if it's not Night Mode Style and header is blue, then they can have a blue header.
Any help would be appreciated
Thank you
Richard
Does anyone know how to call style fields using xen:if?
I know how to call customFields using
<xen:if is="{$visitor.customFields.header_color} == 'blue'">
but what I would like is to call a created style field.
<xen:if is="{$visitor.__________.________} == 'style name'">
where I've left it blank is the part I don't know and the "style name" is the actual name shown and not the field name because I don't know how to call this either.
Does anyone know the fields I need?
The reason is, I am allowing users to have some header color choices, but I have also created a "Night Mode" Style which makes everything darker, so I would like this to "overwrite" any header color and make it dark also.
So, if possible I would like something like this:
<xen:if is="!{$visitor._______.______} == 'Night Mode' AND {$visitor.customField.header_color} == 'blue'">
CODE HERE
</xen:if>
Basically, if it's not Night Mode Style and header is blue, then they can have a blue header.
Any help would be appreciated
Thank you
Richard
Last edited: