the "content" in your template is actually instance of ContentModel class ... 
does it answer the question?

or is it that you want to return ContentModel from some method in your model 
rather then Content?

Jan

On Jun 1, 2011, at 3:59 PM, Unger, Richard wrote:

> Hi Magnolians!
>  
> A quick question:
>  
> Given a Content, what is the code for getting a ContentModel for passing to 
> freemarker?
> eg:
>  
>  
> public ContentModel getModelForContent(Content c){
>        ???
> }
>  
>  
> I can’t find an example anywhere, and as usual, it isn’t documented…
>  
> Thanks!
>  
> Regards from Vienna,
> 
> Richard
> 
> 
> ----------------------------------------------------------------
> 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