Hi, I am trying to add vertical and horizontal navigation in my template. In 
configurations where my template is defined I added a navigation node, directly 
under my template node, with the properties described in this page, 
https://documentation.magnolia-cms.com/display/DOCS53/Navigation . I added this 
line in my main template ftl file, [#include def.navigation.vertical.template], 
but I am getting this error:
2015-09-30 11:32:50,678 ERROR freemarker.runtime                                
: Error executing FreeMarker template
FreeMarker template error:
The following has evaluated to null or missing:
==> def.navigation  [in template "templates/helloWorld.ftl" at line 163, column 
35]

----
Tip: It's the step after the last dot that caused this error, not those before 
it.
----
Tip: If the failing expression is known to be legally refer to something that's 
null or missing, either specify a default value like myOptionalVar!myDefault, 
or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only 
cover the last step of the expression; to cover the whole expression, use 
parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #include def.navigation.vertical.temp...  [in template 
"templates/helloWorld.ftl" at line 163, column 25]
----

Java stack trace (for programmers):
----
freemarker.core.InvalidReferenceException: [... Exception message was already 
printed; see it above ...]
        at 
freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:108)
        at 
freemarker.core.UnexpectedTypeException.newDesciptionBuilder(UnexpectedTypeException.java:60)

How do I get def to populate with my template info so I can get this thing 
working?

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=9c51b305-0e29-4565-871d-c9a585888e8e


----------------------------------------------------------------
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