Solved
Forum Discussion
Hmm. Looks awesome and makes sense to me. Any idea why it would be throwing this as a response though? I did change the category to match mine (Instructor). I know "Instructor" definitely exists.
FreeMarker template error The following has evaluated to null or missing: ==> category [in template "preview" at line 3, column 6] 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 cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)?? The failing instruction (FTL stack trace): ---------- ==> #if category.id == "Instructor" [in template "preview" at line 3, column 1]
Thank you!
Hey Jillian,
Sorry, rather than use category.id, you should try using coreNode.id, e.g. something like
<#if coreNode.id == "Instructor"> <div class='VIC_community_logo'> <a href="/t5/custom/page/page-id/VIC" class="VICcommunityLogo" title="Virtual Instructor Community">Virtual Instructor Community</a> <span class="tagline">Looking at life through tax.</span> </div> <#else> <div class='hrb_community_logo'> <a href="/" class="communityLogo" title="The Community">The Community</a> <span class="tagline">Looking at life through tax.</span> </div> </#if>
Related Content
- 10 months ago
- 3 years ago
- 2 years ago