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

getContentByCategory from any workspace

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Do
    • Neutral
    • None
    • 2.4.1
    • None

    Description

      catfn.getContentByCategory() only works with content in the website workspace. The function uses cmsfn.siteRoot internally so we are basically limited to pages. Remove this limitation, allowing users to get categorized content from any workspace.

      More and more content is created and stored in apps today. While you can categorize app content, you can't get it with a templating function. The Travel Demo works around this limitation using a custom model, but in the spirit of light development a Java model should not be required.

      The function could look like this (pseudocode):
      getContentByCategory(Node node, String name, String workspace)

      such as:
      getContentByCategory(rootNode, "beach", "tours")

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              ahietala Antti Hietala
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD