Forum Discussion
samudhraa
11 years agoExpert
Hi Braynpollock,
I think its mentioned in the tkb post that parameters can only be of the type string. One of the workaround could be , for you to pass the message size as string , and then convert it to number using something like ,
<#assign numReplies = (thread.messages.linear.message?size - 1) />
<#assign numReplies = numReplies?string />
<@component id="Message" message=starter numReplies=numReplies showSubject="true" />
and later in the component Message ,
<#assign numReplies = env.context.component.getParameter('numReplies') />
after the attempt part , when you are about to use the variable , you can convert it to number .
<#assign numReplies = numReplies?number />
Hope that helps .
Thanks,
Sam
Related Content
- 4 years agoInactive User
- 3 months ago