Ernst, if you're curious, the magic happens in 
info.magnolia.freemarker.models.MagnoliaObjectWrapper and 
info.magnolia.freemarker.models.ContentModel :)

Cheers,

-g

On Feb 10, 2010, at 10:35 AM, Christian Ringele wrote:

> Hi Ernst,
> 
> I'm not sure, how you tried to access the content node.
> Here an example how you access the content node itself (which is a node of 
> the page).
> I added this to the main.ftl:
> <div id="main">
>                     <h1>NAME: ${conte...@name!}</h1>
>                     <h1>TITLE: ${content.title!}</h1>
>                     <h1>"CONTENT STRING...": ${content}</h1>
> 
> I guess the third line is what you tried.
> As you can see on the print screen, it returns the content node name when 
> calling just ${content}.
> I hope this answers your question.
> 
> <Screen shot 2010-02-10 at 10.26.13 AM.png>
> 
> Cheers,
> Christian
> 
> 
> 
> On Feb 4, 2010, at 9:55 AM, Ernst Bunders wrote:
> 
>> 
>> hello
>> 
>> I'm a bit puzzled: the content variable in the main.ftl template holds
>> a string, and not a reference to the page content node. I don't get
>> this.
>> Can anybody explain this please?
>> 
>> regards,
>> 
>> -- 
>> 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]>
>> ----------------------------------------------------------------
> 
> 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]>
----------------------------------------------------------------

Reply via email to