I said have a look at how this is done in STK, not use it blindly, although i 
agree that 50% of the time it's the same thing :D

model is something you define in your paragraph/page template definition using 
the modelClass parameter (most of the STK paragraphs have them so you can look 
at any of them and the class of the model itself)
model.site means that given model has to have a site associated. In Magnolia CE 
you have only one site and it will be always there for STK paragraphs, but not 
necessarily for any custom freemarker only paragraph.

If the STK license is acceptable for you, I suggest you build your site on top 
of it as it gives you lots of functionality nearly for free. If not you can 
build something alike (e.g. create java based model that does the heavy lifting 
and have nice clean easy to understand template, rather then assembling links 
to files in the template directly).


HTH,
Jan


On May 19, 2011, at 12:36 PM, Magnolia Forums (on behalf of Mike Herzog) wrote:

> 
> Hello Jan,
> your suggestion sounds good.
> 
> But now I get FreeMarker template error with
> [code]Expression model.site is undefined on line 10, column 16 in 
> templates/<myProject>/templates/homepage.ftl.
> The problematic instruction:
> ----------
> ==> list model.site.theme.cssFiles as cssFile [on line 10, column 9 in 
> templates/<myProject>/templates/homepage.ftl]
> ----------
> [/code]
> 
> Line 10 is [code][#list model.site.theme.cssFiles as cssFile][/code] and col 
> 16 is the 'm' in 'model' in my template.
> 
> Why is "model.site" not defined? I though it was build in?
> 
> Regards
> 
> Mike
> [;-)
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=0bc436ee-d5ab-4b9d-9716-94b50f9b6cf9
> 
> 
> ----------------------------------------------------------------
> 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