Boolean
-
6/6/2013 1:57:23 PM
Get tag count for just current culture?
Hi
I'm using the kentico blog and displaying the document tags/categories underneath the post. Next to those I've added a little count of how many of those tags are being used, which is stored in the CMS_Tag table.
The problem I'm running into is that the count does not take cultures into account, so if I have the tag "TagA" applied to a multiple blog posts in en-US, en-CA and en-GB, it comes up as an aggregate of all those cultures. For example, given the following posts:
Blog post A (en-US) = "tagA" Blog post B (en-US, en-CA) = "tagA" Blog Post C (en-US, en-CA, en-GB) = "tagA"
Visiting "Blog Post C" in the en-GB culture shows a "tagA" count of 3, not 1.
Is there a way to see how many times a tag is being used in just the current culture? It was causing some confusion when the tag for en-US was being used 20+ times, but the en-GB was only being used once, so the tag count looked broken.
|