[MGNLFORUM-16] Dynamic titles / text in default templates Created: 04/May/07  Updated: 02/Dec/13  Resolved: 15/Mar/10

Status: Closed
Project: Forum (closed)
Component/s: templates
Affects Version/s: None
Fix Version/s: 1.1, 1.2.1

Type: Improvement Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Currently the default forum dialogs and associated paragraph templates offer the possibility to have a title and free text on top of each view.
It could be nice if those were interpreted by freemarker, so that the templates themselves would not have to contain stuff like "Found X threads". The downside is that this would bring enduser-unfriendly freemarker tags in the dialogs' values. ("${threadCount}" would be +/- ok I guess, but this is at the moment "${action.forumList?size}" which is less easy to understand and retype without mistakes. Maybe we could somehow find a way to add values in the root of the freemarker context)

see FreemarkerHelperTest.testInterpretCanBeUsedForDynamicNodeProperties() for samples on how to achieve this.



 Comments   
Comment by Magnolia International [ 22/Jul/09 ]

This is now done for the titles of the thread-list and thread-view paragraphs.
It could be generalized to a few more places, but the syntax isn't very clean at the moment.

Comment by Christoph Meier [ 02/Dec/13 ]

closed, since it has resolved a long time ago

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