How to filter News without any classifications?
hi,
I am looking into the ways to update the News widget's advanced settings for the FilterExpression field.
I need to display the news entries without any Tags assigned, or another widget to display News entries without any categories assigned.
I understand FilterExpression could have something like this to filter News by a certain tag:
Tags.Contains(
"4EEA167D-71D0-4332-9057-D550E2738076"
) AND Visible =
true
AND Status = Live
Hi Osman,
Thank you for contacting us.
You can modify the filter expression to use Tags.Count =0 this way you will get the items that have not tags for example, like so: Visible = true AND Status = Live AND Tags.Count = 0 the same will work for categories. You can find some additional filter expression samples here:Filter Expressions for Sitefinity Content Items
Thank you Atanas.
It works like a charm. And thanks for the extra bonus for the link for the additional filter expression samples. Great help!
I would love to see an official repository for the tips like this, API documentation for the existing features, etc.
IMO, the documentation microsite is good but not really enough.
Cheers,
Osman
Hello,
Thank you for your feedback. The team is hard at work improving the documentation portal with more samples and real world example, so all feedback is welcome and greatly appreciated.
Regards,