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