Forum Discussion
Can you please post your code here, not the entire code, but just a snippet where you have used this condition. This usually is the case when the users don't have the permissions to make the API calls, other than that, I will need to have a look at your code.
Here's the beginning of my code
<#assign tkbBoards = rest("/categories/id/demandforce-tkb/boards/nested?restapi.response_style=view").boards/> <#if !user.anonymous && (tkbBoards.board?size-1>0)> <#assign boardIdList=[] /> <#list tkbBoards.board as board> <#assign boardId = board.id/> <#assign boardIdList = boardIdList + [boardId] /> </#list>
I tried adding <#if !user.anonymous && (tkbBoards.board?size-1>0)> before the first line and got this
Freemarker template 'preview' parsing failed:
ParseException:Parsing error in template "preview" in line 55, column 16: Unclosed #if when the end of the file was reached.
Related Content
- 2 years ago
- 6 months ago
- 2 years ago