'How do I add multiple tags in the dynamic listing data section of a listing?
I'd like to be able to add multiple tags in the Dynamic Listing Data / Filtered Tags section of a listing. I'm able to add multiple tags in Sitecore, but it causes the listing to break on the site. When there is only one tag added, it works correctly. I'm not sure whether my source code needs to be modified so that the field on Sitecore can take in multiple tags.
Here is a screenshot of the Filtered Tags section with the names of the tags censored:

Here is the code that is currently being used:
foreach (var tag in query.Tags.Select(t => new ID(t)))
{
predicate = predicate.And(item => item.Semantics.Contains(tag));
}
I've been trying code like this as well, but it also doesn't work:
foreach (var tag in query.Tags.Select(t => new ID(t)))
{
predicate = predicate.And(item => item.Semantics.Intersect(query.Tags.Select(t => new ID(t))).Any());
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
