Hi,
I have faced bellow error when i have added the In-Context editing pencil code in ftl file.
I have created a content model and associated template for each page type.
- In the site content panel under the pages folder: Right click on the parent page (home) and select create content.
- Choose the content type
- Fill out the form and save
If I click on left side link(like About Us) then editing work fine but same when i click on top menu(About Us) and sub menu in case throws bellow exception.
FreeMarker template error:
The following has evaluated to null or missing:
==> model [in template "templates/web/infrastrucure.ftl" at line 74, column 87]
Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault
, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cove
r the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??
The failing instruction (FTL stack trace):
----------
==> ${model.title1} [in template "templates/web/infrastrucure.ftl" at line 74, column 85]
----------
Java stack trace (for programmers):
----------
freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]
at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98)
at freemarker.core.UnexpectedTypeException.newDesciptionBuilder(UnexpectedTypeException.java:41)
at freemarker.core.UnexpectedTypeException.<init>(UnexpectedTypeException.java:24)
at freemarker.core.Dot._eval(Dot.java:81)
Thanks
Atul Dongre