[MGNLSTK-446] More complete method collection in STKUtil needed? Created: 21/Aug/09  Updated: 13/Mar/12  Resolved: 13/Mar/12

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: templates
Affects Version/s: 1.1.1
Fix Version/s: 2.0

Type: Improvement Priority: Major
Reporter: Christian Ringele Assignee: Daniel Lipp
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLSTK-436 Make inplace templating more usable Closed
relation
is related to MGNLSTK-435 Paragraph for easy access to data in ... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

I raised the question of providing easy access to data in data module in this Jira task: MGNLSTK-435
In this task i suggested something like general model classes to use.

Now another idea/possibility came up in my mind:
Why not providing a quite complete set of methods in the STKUtil and having them documented well. Something like a lib for STK templates.
But they would need to be well documented, because the STKUtil provides already (as the MagnoliaUtil 'mgnl') a set of helper methods, but I'm sure most don't know anything about it/would know how to find out.

Pros:

  • Every stk freemaker template has automatically the object 'stk'
  • Still a paragraph can have its specific model class and using the stk methods
  • Another reason to use STK freemarker templates and not using your complete own templates.
  • A good set could be quite easy provided which boosts the possibilities you can do in a freemarker template without having to code Java.
  • There is already a set of methods in it, but mostly only regarding resolving links/image-links
    Cons:
  • it must be documented well that there is a real use/gain of it.


 Comments   
Comment by Christian Ringele [ 03/Nov/11 ]

STKUtil is deprecated in STK 2.0

Comment by Daniel Lipp [ 13/Mar/12 ]

As already commented, STKUtil is deprecated in STK 2.0 so we won't invest more in it.

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