cancel
Showing results for 
Search instead for 
Did you mean: 

Custom action

3acascia
Champ in-the-making
Champ in-the-making
Hi All,

I create a custom action in Share which uses noderef of the current displayed document.


         <action id="custom.doclib.action.revisions"
                 type="link"
                 icon="history"
                 label="actions.custom.revisions">
                  <param name="href">/share/page/custom/versions?noderef={node.noderef}</param>
                 <param name="target">_blank</param> 
         </action>


But the placeholder {node.noderef} it is not replaced.
What is it wrong?

Thanks in advance,
Toma
2 REPLIES 2

abarisone
Star Contributor
Star Contributor
Hi,
here you can find a very cool tutorial by JPotts http://ecmarchitect.com/images/articles/alfresco-actions/actions-article-2ed.pdf
Maybe node.noderef must be passed as a parameter.

Regards,
Andrea

3acascia
Champ in-the-making
Champ in-the-making
Hi Andrea,
thank you for your reply.
I found the mistake: the placeholder was wrong. The correct one is {nodeRef}.

Regards,
Toma