<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Document Action - Remove All in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/document-action-remove-all/m-p/249742#M202872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom Content Model "myModel", I have some custom actions that get shown for only this model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is - how would I remove all other document actions when this model is the node? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(i understand I can manually add my own evaluator to each of the normal document actions - but there must be a better way then adding it to over 20 other options)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Mar 2012 18:27:38 GMT</pubDate>
    <dc:creator>drozes</dc:creator>
    <dc:date>2012-03-27T18:27:38Z</dc:date>
    <item>
      <title>Document Action - Remove All</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/document-action-remove-all/m-p/249742#M202872</link>
      <description>Hi guys;I have a custom Content Model "myModel", I have some custom actions that get shown for only this model.My question is - how would I remove all other document actions when this model is the node? (i understand I can manually add my own evaluator to each of the normal document actions - but th</description>
      <pubDate>Tue, 27 Mar 2012 18:27:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/document-action-remove-all/m-p/249742#M202872</guid>
      <dc:creator>drozes</dc:creator>
      <dc:date>2012-03-27T18:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Document Action - Remove All</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/document-action-remove-all/m-p/249743#M202873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately, I'm not aware of a better way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 22:33:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/document-action-remove-all/m-p/249743#M202873</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-03-27T22:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Document Action - Remove All</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/document-action-remove-all/m-p/249744#M202874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One way would be to override the actionGroupId calculation in surf-doclist.lib.js. This would allow you to use a completely separate set of action group definitions for nodes of that type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This area has changed very recently on HEAD (so not yet in a formal Community release), so be aware of that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For 4.0.d and earlier:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Override surf-doclist.get.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- After the &amp;lt;import&amp;gt; add your own function to calculate the action group&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;DocList_Custom.calculateActionGroupId = function My_calculateActionGroupId(record, view)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;- You would check record.node.type for your custom model and prefix the actionGroupId, for example, for those nodes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently on HEAD (i.e. what will likely be 4.0.e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- You can do something similar to the above, although note you now have to supply an object with a resolve(itemJSON, view) function&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- You can override the "resolver.doclib.actionGroupResolver" bean which now does the same calculation as the JavaScript used to, but now in Java source instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not that familiar with the latter method, but can point the correct person to this topic should you hit problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 23:04:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/document-action-remove-all/m-p/249744#M202874</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2012-03-27T23:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Document Action - Remove All</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/document-action-remove-all/m-p/249745#M202875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(this is my first post),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm browsing alfresco svn and i read on this new evaluator in &lt;/SPAN&gt;&lt;A href="http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/slingshot/config/alfresco/slingshot-documentlibrary-context.xml" rel="nofollow noopener noreferrer"&gt;this file&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also read on new tag for extension file (&amp;lt;configuration&amp;gt;) in rm-extensions.xml (record management).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These two features are very interesting and I would use them in my projects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when you release 4.0.e? &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 09:35:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/document-action-remove-all/m-p/249745#M202875</guid>
      <dc:creator />
      <dc:date>2012-05-31T09:35:08Z</dc:date>
    </item>
  </channel>
</rss>

