[Solved] Tags issue on multi-lingual site
# help-with-umbraco
c
V10.8.7 Just adding a tagging system to some articles. Done this before many times, however, on this 10.8.7 multi-lingual site I can't get any tags out in the view. Just for a test I'm using
var allContentTags = _tagQuery.GetAllTags();
which should get all tags on the site in all tag groups in the language I'm viewing the site in. But I get 0. In Tag Manager, I can see all the tags. In the nodes, all the tag properties are set to vary by culture, so there are no invariant values anywhere. If anyone has any ideas I'd love to hear them. Thanks.
d
And you have "Allow vary by culture" on the doctypes?
c
Yes, on the docTypes and the properties.
This site also has Vendr installed. Hope that's not messing things up. It was a nightmare to get going in the first place.
Turns out I needed the culture adding. So
IEnumerable<TagModel?> allContentTags = _tagQuery.GetAllContentTags(culture:Model.GetCultureFromDomains()).Distinct();
fixes it 🙂
d
That's good to know. I was asking about similar at UKFest with Variable Blocks in the future
3 Views