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:user-list- [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]>
----------------------------------------------------------------

Reply via email to