[MGNLDAM-369] DAM module should configure DamTemplatingFunctions as a context attribute on standard renderers Created: 13/Jan/14  Updated: 14/Dec/14  Resolved: 14/Dec/14

Status: Closed
Project: Magnolia DAM Module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Tobias Mattsson Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: next, quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
duplicates MGNLDAM-527 Install templating-functions when dam... Closed
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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

To use the dam templating functions you need to configure them as a context attribute on the renderers. The dam should do this on install (and on update to next version) so its there by default. The name of the attribute should be 'damfn' and it should be added both for the JSP and freemarker renderers.

Note that calling methods on variables in JSP is a feature introduced in JSP 2.2 which is supported by Servlet 3.0 level servlet containers. For Tomcat this means version 7.



 Comments   
Comment by Federico Grilli [ 29/Jul/14 ]

Verified on 2.0.1 the damfn ctx attribute is only set at /modules/standard-templating-kit/renderers/stk/contextAttributes/damfn. It probably makes sense to add it to /modules/rendering/renderers too both for JSPs and freemarker

Generated at Mon Feb 12 04:59:09 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.