2

I am new to Tridion and am facing an issue with the taxonomy.

As storage we are using file system and for taxonomy we have sql db.

Now, we have created State as Category with few keywords inside it. I have created schema and a component and have selected one of the keyword for classification. This associates the keyword with the component.

Now I have used the Tridion control with the uri of the State to retreive the taxonomy. It works fine, but the component count is showing as (0) instead of (1) since only one component is added in the bracket which is the normal behavior of tridion. I have published the taxonomy as well as the component.

Daniel Neagu
  • 1,711
  • 11
  • 13
  • When you say 'published the taxonomy' does that mean you clicked on the 'Category' inside tridion and published it? Can you confirm that taxonomy exists in the sql database? – johnwinter Sep 14 '12 at 14:44
  • 1
    also check you are publishing from right publication.. – vikas kumar Sep 14 '12 at 14:53
  • It looks like you're trying to retrieve the number of components that match a given keyword. Could you share your content delivery code for this call? – Alvin Reyes Sep 15 '12 at 02:58
  • Alvin, This is the code in my TBB - – user1671632 Sep 17 '12 at 10:33
  • Vikas and John - I have a single publication and it's publishing correctly in my sql. – user1671632 Sep 17 '12 at 10:35
  • If you add the showEmptyKeywords to your tridion:TaxonomyControl does it show your item(s) with zero? - this could help show there is a problem with the numbering code rather than your publishing. Are you sure that the content related to that taxonomy is also published? I know you say you have, but other than a publishing mix up (e.g items to different targets, the component is failing to publish etc), I cannot see what this would be. – johnwinter Sep 17 '12 at 14:44
  • Hi, did you get get a solution to this? – johnwinter Oct 03 '12 at 16:30
  • Thanks for asking, but no luck yet. – user1671632 Oct 10 '12 at 09:40

1 Answers1

4

You need to publish the Component that is using the Keyword. As far as I can see, the control is counting items on the Content Delivery side; not items in the Content Manager. I set up a simple example using the basic tag:

<tridion:TaxonomyControl 
    ID="taxBasicProperties" 
    TaxonomyURI="tcm:1-8-512" 
    runat="server">
</tridion:TaxonomyControl>

Result without the component published:

  • Sistema operativo (0)
    • Android (0)
    • iOS (0)
    • Windows (0)

Result WITH component published:

  • Sistema operativo (1)
    • Android (0)
    • iOS (0)
    • Windows (1)
SteveW
  • 386
  • 1
  • 5