On Feb 2, 2010, at 1:55 PM, Ernst Bunders wrote:
>
> hello Grégory
> Maybe it would be nice to include a 'site' instance in the freemarker
> context.
Agreed.
> At this point it is at least not entirely clear how to obtain
> an instance.
You can do ${stk.site}, which is
info.magnolia.module.templatingkit.util.STKUtil#getSite(), or ${model.site}, if
your model is (a subclass of) STKTemplateModel
-g
> 2010/1/29 Grégory Joseph <[email protected]>:
>>
>>
>> On Jan 29, 2010, at 3:33 PM, Nils Breunese wrote:
>>
>>>
>>> Please see http://jira.magnolia-cms.com/browse/MGNLSTK-575
>>
>> Yep, seen it earlier; excellent, thanks. We'll probably apply that soon on
>> the trunk, as soon as we get a moment. We probably want to do the same
>> "magic" wrapping we did for templates/paragraphs, where you could do
>> ${site.myParam} instead of ${site.parameters.myParam}. We'll probably also
>> want to have an example with the default config (or at least an empty
>> "parameters" node). Do you have a very concrete use-case we could reuse for
>> samples ? :)
>>
>> Cheers,
>>
>> -g
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <[email protected]>
>> ----------------------------------------------------------------
>>
>>
>
>
>
> --
> Ernst Bunders
> Ontwikkelaar VPRO
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------