cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass a nodeRef from a custom page to a component

kavilash23
Champ on-the-rise
Champ on-the-rise
Hi Guys,

I have created a new page for alfresco share and its is being called through an action which passes a noderef (using noderef={node.nodeRef} as argument to a custom component on that page.

So can anyone please advice how to pass the noderef to the component on that page.

Thanks
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

you do this via the <properties> element in the component definition. Simply define a property like this:

<component>
   <!– yada, yada –>
   <properties>
      <myProp>{noderef}</myProp>
   </properties>
</component>

Occurences in the form of "{name}" are resolved and replaced with the value of the URL parameter, token or template argument called "name" - in your case "noderef".

Regards
Axel

kavilash23
Champ on-the-rise
Champ on-the-rise
Thanks for your help Axel.