Forum Discussion
Henrik
12 years agoAdvisor
Hi,
Is it possible to pass an array as a parameter? I've made some tests but couldn't manage to make it work.
For instance, I'd like to pass a thread list built from two boards:
<#assign topics1 = rest("/boards/id/ID1/topics/recent").messages /> <#assign topics2 = rest("/boards/id/ID2/topics/recent").messages /> <#assign topics = [topics1,topics2] /> <@component id="paramtest" param=topics />
Or is it possible to make a single objet from topics1 and topics2?
Thanks!
Henrik
KPNOnline
10 years agoMentor
I am curious about the same, because I cannot get it to work..
I want to pass a custom object to a child component, but cannot get it to work..
Is there any real life example that is not based on R.E.S.T. return datas?