Content Widgets - filtering by custom field of type classification
I have added a custom field of type Classification to Documents & Files.
The Download list widget has options to filter ("narrow selection") by Categories, Tag, and/or Dates. Is there a way I can add my custom classification field as one of the options?
If not, is there a way I can filter the list by a one of the custom classification field values? I thought this might be possible using the FilterExpression value, but I was not sure how to build the expression.
(from Download list Edit screen, Advanced -> ControlDefinition -> Views -> FilterExpression)
Thanks,
Antoine
Hello Antoine,
You are on the right track - you can achieve the desired functionality by adding the following to the FilterExpression:
AND TestFilter.Contains((fc16ede5c205-4ab0-b9da-9ba4060d8ea9))
where TestFilter is the name of the custom field ( your custom classification type ) and the guid is the id of the custom classification, which can be found in the database.
Regards,
Victor Velev
the Telerik team