-
Task
-
Resolution: Unresolved
-
Major
-
None
-
1.0
-
-
Yes
-
Empty show more show less
-
Empty show more show less
The current implementation of SiteAwareTemplateAvailability & ConfiguredSiteTemplateAvailability does not allow you to achieve following:
- Filter out pages of renderType "freemarker"
This means:
If you add a freemarker page into any module, it will be available in any site of the whole system.
No way you can filter them out via site.getTemplates().getAvailability().
The correct behavior for freemarker templates should be (and as it was before 5.4):
- Freemarker templates can be added to any top level page (don't have a site definition yet).
- Can't be added to any site with an explicit site definition (not "default")
- Can be added into any site using the "default" site definition (no explicit mapping int he site definition)
I added a patch that achieves this. Basically it checks if the current node is a part of a mapped site definition.
Acceptance criteria
- mentioned in
-
Page Loading...