[magnolia-user] Re: Struggling with first directive

2016-09-16 Thread Nils Breunese (via Magnolia Forums)
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 met

AW: [magnolia-user] Re: Struggling with first directive

2016-09-15 Thread Unger, Richard
nolia-cms.com]" im Auftrag von "Jan Haderka (via Magnolia Forums) [fo...@magnolia-cms.com] Gesendet: Donnerstag, 08. September 2016 09:14 An: Magnolia User List Betreff: [magnolia-user] Re: Struggling with first directive Hi Alex, I guess the lack of responses comes from the fact that no one is

[magnolia-user] Re: Struggling with first directive

2016-09-08 Thread Jan Haderka (via Magnolia Forums)
Hi Alex, I guess the lack of responses comes from the fact that no one is really trying to write directives for Freemarker. Most of the time it is enough to write a simple templating function class and register it under /modules/rendering/renderers/freemarker/contextAttributes as you have tried

[magnolia-user] Re: Struggling with first directive

2016-09-07 Thread Alex Lancaster (via Magnolia Forums)
I guess not! Well for the sake of future generations who may stumble across this post in an attempt to understand our primitive culture and why we spent so long struggling with bad documentation, I am now following [url=http://dev.magnolia-cms.com/~gjoseph/dont-build-magnolia-build-your-project

[magnolia-user] Re: Struggling with first directive

2016-09-06 Thread Alex Lancaster (via Magnolia Forums)
Still struggling with this one, anyone have any ideas on this? -- 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.