Forum Discussion

tsrisudh's avatar
tsrisudh
Advisor
8 years ago

Can we filter to documents with multiple labels

I have a document board with multiple labels, i want to enter the page with 2 or more labels selected?

 

Is this possible?

 

For example 

https://community.lithium.com/t5/Online-Communities-Blog/bg-p/onlinecommunitiesblog/label-name/commentary

 

This will show blogs related to "Commentary" only, i want something similar for more than one label

 

like https://community.lithium.com/t5/Online-Communities-Blog/bg-p/onlinecommunitiesblog/label-name/commentary,Lithium+News

  • tsrisudh:

     

    By Default Lithium won't allow to filter with Multiple Labels. We need to build a custom component to fulfill the requirement.

     

    If my post is helpful and answers your question, please give "Kudos" and "Accept it as a Solution."

    Thanks & Regards,
    Abhishek Illindra

     

     

     

     

     

  • Hi tsrisudh,

     

    Do you mean you want to retrieve all messages in a board with 2 or more labels selected?

    Give this a try - 

    SELECT * FROM messages where board.id = '<boardID>' and labels.count(*) > 1

    EDITED: I do not have access to the links you are referring. Looks like you are referring to a way to filter via UI. 

     

     

    • tsrisudh's avatar
      tsrisudh
      Advisor
      Yes, what i am looking is to do thru UI.
      • tsrisudhThere is no method to filter by multiple labels using the standard components.  This is possible building a custom component.

         

        If my post is helpful and answers your question, please give "Kudos" and "Accept it as a Solution."

        Thanks & Regards,
        Abhishek Illindra