-
New Feature
-
Resolution: Fixed
-
Major
-
None
-
None
-
-
Empty show more show less
At the moment, templates (ie. paragraph or pages) are stored on the filesystem (jsp) or the classpath (freemarker)
Having them on the repo (a specific workspace) would allow
- activating them (no more manual files copying)
- editing them within Magnolia
This seems pretty easy to implement for freemarker templates (implement a new freemarker.cache.TemplateLoader), with one warning though: since freemarker caches the result of its template parsing, loading the templates should probably occur in an acl-unaware way, i.e we should not try to restrict who/what can render certain templates. (of course, it's a different story for editing them through the admin interface, where we definitely want to use ACLs to determine who can view the templates source and modify them)
Doing the same thing for JSPs seems rather cumbersome (one could imagine writing the repo content to the filesystem on creation/activation of node), and I'm not sure we should encourage this.
- is related to
-
MAGNOLIA-2170 Webapp should be markable as read-only
- Closed
-
MAGNOLIA-2186 Provide support for freemarker (page) templates
- Closed
-
MAGNOLIA-2583 Provide a custom MultiTemplateLoader
- Closed
-
MGNLINTEMPL-1 templates in separate workspace (freemarker)
- Closed
- is superseded by
-
MGNLINTEMPL-1 templates in separate workspace (freemarker)
- Closed
- relates to
-
MAGNOLIA-6677 Remove FTL 5sec cache in Developer mode
- Closed