Forum Discussion
MattV
4 years agoKhoros Staff
You have some errors in your code. Partially corrected code below.
<#if coreNode.hasAncestor("category") == true || coreNode.id == "UBW">
<span class="public_logo_link" title="This content is publicly available"> Public </span>
<#/if>
Freemarker tags need to start with the "<#" characters, so a freemarker if-statement is "<#if" followed by a space, then your conditionals.
Your coreNode.hasAncestor() was using curly braces instead of parenthesis. Then "category" needs to be the category id, such as "UBW".
Then finally properly closing the freemarker if-statement.
Hope this helps.
Related Content
- 4 years ago
- 3 years ago
- 5 years ago
- 10 years ago