You could also expose functionality via your model class. Adding global context 
attributes can be a bit too much 'magic' sometimes and a call to 
model.someMethod() is always easy to track, which is especially important when 
you're working with multiple developers. You can always delegate the method 
call to some utility class used by multiple model classes.

(And if your only use case is creating an uppercase string, then you could also 
just use the Freemarker built-in for that: ${"string to convert to upper 
case"?upper_case}. :) )

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=38c77b48-fb81-42de-b4ad-b37132abc3eb


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to