Public
Frequent Advisor

Select more than one label? Is it possible?

Is it possible for users to select more than one label? Can we edit in any way the skin to make it possible??

3 Replies 3
Honored Contributor

On a topic, you can have an unlimited number of labels. When trying to filter by label though, out of box you can only filter by a single label.

It's possible to build the functionality to allow for filtering off of multiple labels using the API, but it's not a minor change by any means.

Frequent Advisor

Hello,

Do you know how to do it? 

 

And thank you so much for your time.

Honored Contributor

@adriana4u,

You can create it custom using the API.

Below is the example API to get messages based on multiple labels

Articles with all specified labels.

SELECT id, subject, href, view_href, kudos, post_time FROM messages WHERE board.id = 'this-is-an-international-blog' AND depth = 0 AND labels.text = "Label A" AND labels.text = "Label E" AND labels.text = "Label B" ORDER BY kudos.sum(weight) DESC LIMIT 10

 

Articles with one or more labels

SELECT id, subject, href, view_href, kudos, post_time FROM messages WHERE board.id = 'this-is-an-international-blog' AND depth = 0 AND labels.text MATCHES("Label A", "Label E", "Label B") ORDER BY kudos.sum(weight) DESC LIMIT 10

 

.......
Do you know we work with Kudos and Accepted Solution.

Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.