I am new to Magnolia (running Community Edition 5.4.8) and working my way 
through the documentation to create a simple directive.

I have followed 
[url=http://freemarker.org/docs/pgui_datamodel_directive.html]this[/url] to the 
point where I have a viewable template and a compiled .jar file.

I am now struggling to understand where to place the:
root.put("upper", new com.example.UpperDirective());

command, or how to configure the shared variable so that my template will 
recognise the user defined directive (I am seeing <@upper> when my page is 
rendered rather than the output of the directive).

So far I have tried following 
[url=https://documentation.magnolia-cms.com/display/DOCS53/FreeMarker+reference#FreeMarkerreference-Addingyourowndirectives]this[/url]
 to add the shared variable under 
/modules/rendering/renderers/freemarker/contextAttributes, but it seems to make 
no difference.

What am I missing here?

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=38c77b48-fb81-42de-b4ad-b37132abc3eb


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to