Lithosphere The Lithium Community

Occasional Contributor jeremylatimer
Occasional Contributor

Labels Component on Category Pages

Hello Lithosphere,

We would like to have a Labels component on our category pages, to display the labels used on all boards within that category, which can be clicked to filter content from those boards with that label.

 

This Li Doc states that labels are board specific: 

https://lithosphere.lithium.com/t5/Labels/Understanding-label-components/ta-p/324214

Has anyone figured out a way to get the Labels component to work in the context of a Category?

Have there been any updates to this functionality, or are there any workarounds to achieve this?

Thank you,

Jeremy

0 Kudos
6 Replies
Honored Contributor
Honored Contributor

Re: Labels Component on Category Pages

@jeremylatimer - Unfortunately, labels component works under board page context.   Also, by default lithium doesn't show threads on the category page, if you have created a custom component to show thread on the category page, you have to create a custom component for labels as well. 

Below is the approach you can achieve this. 

1. Get the boards list for current category using LITHIUM API. 

2.  Get predefined labels for each board and store in an array. 

3. Loop through labels array and use below query to get the count of threads against each label. 

SELECT count(*) messages where labels.text = 'label name' AND category.id = '${coreNode.id}'

https://lithosphere.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collec...

 

Give kudos if you find my posts helpful or mark solution if it answers your query.
Tariq
Reply
Loading...
Valued Contributor
Valued Contributor

Re: Labels Component on Category Pages

I can't find it, but I swear that Lithium has this under development and even in beta for customers that want to try it out -- I may be completely imagining this though as I can't find the source post I read this in.

Reply
Loading...
Highlighted
Occasional Contributor jeremylatimer
Occasional Contributor

Re: Labels Component on Category Pages

Thanks Tariq,

This method just might work for us. Definitely a good idea to look into.

Thank you,

Jeremy

0 Kudos
Reply
Loading...
Occasional Contributor jeremylatimer
Occasional Contributor

Re: Labels Component on Category Pages

Thanks Stan, good to know, that would be great if that's the case.

 

0 Kudos
Reply
Loading...
Occasional Contributor jeremylatimer
Occasional Contributor

Re: Labels Component on Category Pages

Hi Stan,

I entered a Li Support Case to ask about any feature developments related to this, and the closest thing they found was related to Category Subscriptions:

https://lithosphere.lithium.com/t5/Li-Product-Ideas/Subscription-at-Category-level/idc-p/501622/high...

Best,

Jeremy

 

Reply
Loading...
Valued Contributor
Valued Contributor

Re: Labels Component on Category Pages

@jeremylatimer - Ah, good call - That explains why I couldn't find it Smiley Very Happy

0 Kudos
Reply
Loading...