Yes you will need a model.
To set the model just specify the class name in "modelClass" node data of the
paragraph definition
To use model use "${model}" in the freemarker template.
Also have a look at various existing models in STK like ImageModel or TextImage
model, depending on what you want to do, chances are you can use existing model
or just extend it.
HTH,
Jan
On May 27, 2010, at 10:30 PM, Rakesh Vidyadharan wrote:
> I am trying to implement some new pages using Freemarker (my first attempt),
> but hit some roadblocks, and the documentation does not seem to help. I have
> a paragraph that contains links (currently uuid) to an image in the DMS and
> to another node within our own repository. How do I dereference those from
> Freemarker? I tried to use cmsu.img for the DMS item, but I saw exceptions
> when I specified repository and uuid properties (which the docs mention).
> The paragraph is being rendered using a contentNodeIterator.
>
> I suspect that I will need to create a new bean that will handle this, but am
> not sure how to instantiate and load the bean with the current node from FM.
>
> Thanks for all help and suggestions.
>
> Rakesh
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
-
Best regards,
Jan Haderka, PhD.
Magnolia International Ltd.
http://www.magnolia-cms.com
http://twitter.com/magnolia_cms
You should join us on Facebook:
http://facebook.com/Magnolia
--------------------------------------
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]>
----------------------------------------------------------------