[MGNLCAT-178] Possibility to Search for Content that have one of a List of Categories Created: 29/Dec/17  Updated: 23/Aug/22

Status: Open
Project: Magnolia Categorization Module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Philipp Roland Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Team: AuthorX

 Description   

There is a Function catfn.getContentByCategory(rootPage, "sports")] that gives all Content with Category "sports". This works as expeted.

But is there an easy way (a variation of this function) to give a List of categories? I then need all Content that matches one of the categories in the list (so it's an OR-Filtering). For example something like:

catfn.getContentByCategory(rootPage, ["sports", "hobby", "holiday"])

This should give all Contents, that have "sports" and/or "hobby" and/or "holiday" as Category.

Thanks in advance for any suggestions!

Best regards
Roland



 Comments   
Comment by Philipp Roland [ 12/Jan/18 ]

Any Update on this?

Comment by Philipp Roland [ 19/Feb/18 ]

Still no Update on this?

Generated at Mon Feb 12 04:43:50 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.