AnsweredAssumed Answered

[Solved] Change an action following conditions

Question asked by lamba on Mar 9, 2010
Latest reply on Aug 18, 2010 by lamba
Hello everybody,

I have created 2 new actions in Share (v3.2r2) for documents and they work well.

However I would like to change the action if the document has certain aspect.
I tried the steps in this post

So, I added the following code in doclist.get.js within the loop
for each (asset in assets)

// Asset status
      if (asset.hasAspect("custom:new"))

in the documentlist.get.config.xml file, I added the other custom action as following:

<actionSet id="newed">
         <action type="action-link" id="onActionNew2" permission="" label="actions.document.new2" />

But no change on my Document Library in spite of the change of the aspect.

If anybody knows how to make it, tells me.

thank you for you help .