Uploaded image for project: 'Magnolia Categorization Module'
  1. Magnolia Categorization Module
  2. MGNLCAT-178

Possibility to Search for Content that have one of a List of Categories

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None

    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

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              proland Philipp Roland
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: