Forum Discussion
YuriK
13 years agoKhoros Expert
Hey Scott,
You can do the following:
- In the XML tab for the quilt insert your component as follows:
<component id="custom-component-id" param="object-or-string-value" />
- In your component, you can access the passed in param as follows (The attempt/recover loop is to catch the case where the parameter doesn't exist)
<#attempt> ${env.context.component.getParameter('param')} <#recover>
Parameter with the name param not found </#attempt>
This is currently experimental functionality and we will be improving it so please use sparingly for now. Also note that you will not be able to see full functionality in the custom component preview window as the parameter won't be passed in there.
Hope this helps,
Yuri
scottalvis
13 years agoContributor
Thanks Yuri!