Hi Sjoered,

No problem at all.
I like freemarker too, really much cleaner.
As soon as you get used to freemerker, you don't want to go back :)

Cheers,
Christian
On Jan 29, 2010, at 1:57 PM, Sjoerd Adema wrote:

> Hi Christian,
> 
> This is great. I like Freemarker :-)
> Much cleaner than in a JSP. Thanks for the reply.
> 
> Regards Sjoerd
> 
> On Jan 29, 2010, at 9:34 AM, Christian Ringele wrote:
> 
>> Hi Sjoerd,
>> 
>> Then the best way is to do it with a model class attached to the paragraph 
>> (as Greg wrote).
>> You pass to a method of the model class the uuid and return the content node 
>> in there (using ContentUtil.getContentByUUID(repository, uuid)
>> After you returned the content node to your freemarker template, you can 
>> access all properties on the content node as you like, node.title etc.
>> 
>> Cheers,
>> Christian
>> 
>> On Jan 26, 2010, at 9:15 PM, Sjoerd Adema wrote:
>> 
>>> 
>>> Hi Matteo,
>>> 
>>> Thanks Matteo, but what I really need is to expose the new contentnode as a 
>>> map to the freemarker template like the standard objects "content" and 
>>> "page". Not just a link to that node. Then I want to make calls like 
>>> ${newnode.title} and ${newno...@name} etc.  I'm very interested in how to 
>>> accomplish that.
>>> 
>>> Regards Sjoerd
>>> 
>>> On Jan 26, 2010, at 2:14 PM, Matteo Pelucco (Tinext) wrote:
>>> 
>>>> 
>>>> Otherwise, if it would fit your needs, you can take a look at 
>>>> MagnoliaTemplatingUtil.java.
>>>> This class is exposed to Freemarker world with the name of "mgnl".
>>>> So, for instance, you can have a page link with
>>>> 
>>>> ${mgnl.createLink('website', content.uuid)}
>>>> 
>>>> (output would be, for instance, 
>>>> "http://your-domain/your-context/path-to-page-with-uuid.html";)
>>>> 
>>>> HTH,
>>>> Matteo
>>>> 
>>>> -----Original Message-----
>>>> From: [email protected] 
>>>> [mailto:[email protected]] On Behalf Of Will Scheidegger
>>>> Sent: martedì, 26. gennaio 2010 07:58
>>>> To: Magnolia User-List
>>>> Subject: Re: [magnolia-user] Access to another node from a Freemarker 
>>>> paragraph
>>>> 
>>>> 
>>>> I have next to no Freemarker experience myself... but I thought one can 
>>>> use the Magnolia cms and cmsu JSP tags in Freemarker (see [1]). That 
>>>> should make things pretty easy.
>>>> 
>>>> -will
>>>> 
>>>> [1] http://freemarker.org/docs/pgui_misc_servlet.html#autoid_55
>>>> 
>>>> On 25.01.2010, at 22:26, Grégory Joseph wrote:
>>>> 
>>>>> 
>>>>> There are about a dozen ways to do so; the cleanest approach would 
>>>>> probably be have a rendering model class attached to your paragraph, and 
>>>>> get the node from there.
>>>>> 
>>>>> On Jan 25, 2010, at 9:09 PM, Sjoerd Adema wrote:
>>>>> 
>>>>>> 
>>>>>> Hi All,
>>>>>> 
>>>>>> How can i get access to another page node within a Freemarker template. 
>>>>>> I have off course access to the current node exposed as a map and the 
>>>>>> current page exposed as a map. But now within a paragraph I need some 
>>>>>> information of a node for which I only have an uuid. How can I do that ?
>>>>>> 
>>>>>> TIA
>>>>>> 
>>>>>> Sjoerd Adema
>>>>>> 
>>>>>> ----------------------------------------------------------------
>>>>>> 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]>
>>>>> ----------------------------------------------------------------
>>>>> 
>>>> 
>>>> 
>>>> ----------------------------------------------------------------
>>>> 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]>
>>>> ----------------------------------------------------------------
>>>> 
>>> 
>>> 
>>> ----------------------------------------------------------------
>>> For list details see
>>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>>> To unsubscribe, E-mail to: <[email protected]>
>>> ----------------------------------------------------------------
>> 
>> Best regards,
>> 
>> Christian Ringele
>> Magnolia International Ltd.
>> 
>> Magnolia®  - Simple Open Source Content Management
>> 
>> 
>> 
>> ----------------------------------------------------------------
>> 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]>
> ----------------------------------------------------------------

Best regards,

Christian Ringele
Magnolia International Ltd.

Magnolia®  - Simple Open Source Content Management


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to