[MAGNOLIA-1469] Make Freemarker more configurable through admininterface Created: 18/Apr/07  Updated: 04/Nov/15  Resolved: 04/Nov/15

Status: Closed
Project: Magnolia
Component/s: freemarker
Affects Version/s: 3.1 M1
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Won't Do Votes: 0
Labels: freemarker
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
dependency
depends upon MAGNOLIA-3080 Cleanup conundrum between FreemarkerH... Closed
depends upon MAGNOLIA-2533 FactoryUtil$ObservedObjectFactory sho... Closed
relation
is related to MAGNOLIA-3286 Add new setting URLEscapingCharset to... Closed
is related to MAGNOLIA-3087 Allow configuration of shared variabl... Closed
is related to MAGNOLIA-2550 Freemarker: use ModelFactory in our O... Closed
is related to MGNLSTK-577 Make it configurable what classes are... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MAGNOLIA-2582 Make Freemarker template loaders conf... Sub-task Closed Magnolia International  
MAGNOLIA-3087 Allow configuration of shared variabl... Sub-task Closed Magnolia International  
MAGNOLIA-3242 Make FreeMarker's TemplateExceptionHa... Sub-task Closed Jan Haderka  
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

The current FreemarkerHelper class has an hardcoded configuration. It would be useful to have at least some parameters configured through the repository (TemplateExceptionHandler, TemplateLoaders, encoding, sharedVariables, cache?, ...)



 Comments   
Comment by Magnolia International [ 25/Nov/08 ]

This was started, template loaders are now conflgurable

Comment by Magnolia International [ 26/Jan/09 ]

Template loaders (MAGNOLIA-2582) and model factories (MAGNOLIA-2550) are now configurable. Generalizing this issue for further configurability of Freemarker.

Comment by Magnolia International [ 19/Mar/10 ]

Shared variables are now also configurable, since MAGNOLIA-3087

Comment by Magnolia International [ 06/Dec/13 ]

AFAICT, what's left to be configured is encoding (we currently have both setDefaultEncoding("UTF8") and setURLEscapingCharset("UTF8") hardcoded. In light of the comment left by fgiust on MAGNOLIA-3286, I'd be tempted to think this needs to be configured in a single place (config:/server ?). There are other places where we sort of assume that UTF-8 is what we want, but that might not be the case.

Comment by Michael Mühlebach [ 04/Nov/15 ]

Given the thousands of other issues we have open that are more highly requested, we won't be able to address this issue in the foreseeable future. Instead we will focus on issues with a higher impact, and more votes.
Thanks for taking the time to raise this issue. As you are no doubt aware this issue has been on our backlog for some time now with very little movement.
I'm going to close this to set expectations so the issue doesn't stay open for years with few updates. If the issue is still relevant please feel free to reopen it or create a new issue.

Generated at Mon Feb 12 03:27:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.