According to 
https://documentation.magnolia-cms.com/display/DOCS/FreeMarker+reference#FreeMarkerreference-Addingyourowndirectives
 it should be possible to add model classes for referencing variables in .ftl 
scripts. Are there any tutorials/examples for this? Following generates the 
error:  "java.lang.NullPointerException: type" :

/modules/rendering/renderers/freemarker/contextAttributes/Car - componentClass 
: Car.class - name: car

In Car.class there is a static method called in a .ftl script using  
${Car.getBrand()} 

Grateful for any help/advice. /M

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=397c629f-dbf6-4267-a185-816cc0c81d9d


----------------------------------------------------------------
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to