Hello,
Just after some help please with the correct filter logic to use in a DocLister call in an Evo 1.4.15 site.
Specifically:
What's the right filter to use for "if a tv is not empty" usage?
The scenario:
- There are currently 21 profiles.
- Only 18 profiles have a photo (via a TV called image)... so 3 profiles do not have a photo.
- We always want to display 6 profiles.
- We always want to exclude profiles that do not have a photo.
- In other words - always display 6 profiles that do not have an empty image TV
I am trying this as the filter as an 'if not empty' type check but it is not working (profiles without a photo are still included in the output)...
&filters=`AND(
tv:image:!=:;
)`
Using an IF statement like the below in the row template of this menu works to some extent - only profiles with a photo are displayed however the display quantity of 6 is ignored (sometimes it shows 4 profiles, sometimes 5 profiles, rarely 6 profiles) so I am presuming this is not the right way to do this
In an If statement the if not empty check would be something like:
[[if? &is=`[+image+]:!empty` &then=`this is a profile we want to display in this menu` &else=`we don't ever want to display this profile in this menu`]]
but in reality:
[[if? &is=`[+image+]:!empty` &then=`this is a profile we want to display in this menu`]]
This is currently the Doclister call.
[[DocLister?
&id=`profile[*id*]`
&idType=`parents`
&parents=`15`
&depth=`1`
&display=`6`
&ownerTPL=`profileH-menu-wrapper`
&tpl=`profileH-menu-row`
&noneTPL=`profile-menu-NO`
&tvPrefix=``
&tvList=`image,roles`
&renderTV=`roles`
&orderBy=`rand()`
&filters=`AND(
tv:image:!=:;
)`
]]
Any ideas on how to filter this correctly?
Thanks in advance for any help.