<?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 Re: CopyMoveTo hide some 'Destination' list  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/copymoveto-hide-some-destination-list/m-p/295772#M248902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Nikes,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The snippet you've attempted to change contains the default options for the copyTo/moveTo component, which is an internal module used by several different actions.&amp;nbsp; These options are being overwritten by the functions that are creating the instnace of this module.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to see what's going on here, you need to look at the share-documentlibrary-config.xml file and look at the document-copy-to and document-move-to actions defined there.&amp;nbsp; These both use are going to call the functions onActionCopyTo and onActionMoveTo respectively, which are defined in share/components/documentlibrary/actions.js.&amp;nbsp; These functions both call the _copyMoveTo function in that file which creates a new instance (if required) of the Alfresco.module.DoclibCopyMoveTo class (which is the file you have referenced above) and then set its options, including the allowedViewModes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to affect the list of modes avaialble, it's in the _copyMoveTo function you'd have to make the change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, as is standard practice, it's not a good idea to change the out of the box files themselves, so either provide an extension module that replaces actions.js with a custom version, or more cleanly, define your own functions for the document-copy-to and document-move-to actions to call.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see some detail around this latter option here &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://docs.alfresco.com/4.2/concepts/doclib-web-tier.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/concepts/doclib-web-tier.html&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://docs.alfresco.com/4.2/concepts/doclib-override-extension-examples.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/concepts/doclib-override-extension-examples.html&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://docs.alfresco.com/4.2/concepts/doclib-client-side-template-and-action-extensions.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/concepts/doclib-client-side-template-and-action-extensions.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as a starting point&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2015 12:01:41 GMT</pubDate>
    <dc:creator>steven_okennedy</dc:creator>
    <dc:date>2015-08-10T12:01:41Z</dc:date>
    <item>
      <title>CopyMoveTo hide some 'Destination' list</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/copymoveto-hide-some-destination-list/m-p/295771#M248901</link>
      <description>Hello,I want to hide "Shared Files" option from Destination list in CopyMoveTo popup box. in Alfresco 4.2.4I tried commenting "DLGF.VIEW_MODE_SHARED," in tomcat/webapps/share/modules/documentlibrary/copy-move-to.jsthis.options = YAHOO.lang.merge(this.options,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allowedViewModes:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Mon, 10 Aug 2015 06:55:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/copymoveto-hide-some-destination-list/m-p/295771#M248901</guid>
      <dc:creator>nikes</dc:creator>
      <dc:date>2015-08-10T06:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: CopyMoveTo hide some 'Destination' list</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/copymoveto-hide-some-destination-list/m-p/295772#M248902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Nikes,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The snippet you've attempted to change contains the default options for the copyTo/moveTo component, which is an internal module used by several different actions.&amp;nbsp; These options are being overwritten by the functions that are creating the instnace of this module.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to see what's going on here, you need to look at the share-documentlibrary-config.xml file and look at the document-copy-to and document-move-to actions defined there.&amp;nbsp; These both use are going to call the functions onActionCopyTo and onActionMoveTo respectively, which are defined in share/components/documentlibrary/actions.js.&amp;nbsp; These functions both call the _copyMoveTo function in that file which creates a new instance (if required) of the Alfresco.module.DoclibCopyMoveTo class (which is the file you have referenced above) and then set its options, including the allowedViewModes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to affect the list of modes avaialble, it's in the _copyMoveTo function you'd have to make the change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, as is standard practice, it's not a good idea to change the out of the box files themselves, so either provide an extension module that replaces actions.js with a custom version, or more cleanly, define your own functions for the document-copy-to and document-move-to actions to call.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see some detail around this latter option here &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://docs.alfresco.com/4.2/concepts/doclib-web-tier.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/concepts/doclib-web-tier.html&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://docs.alfresco.com/4.2/concepts/doclib-override-extension-examples.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/concepts/doclib-override-extension-examples.html&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://docs.alfresco.com/4.2/concepts/doclib-client-side-template-and-action-extensions.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/concepts/doclib-client-side-template-and-action-extensions.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as a starting point&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 12:01:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/copymoveto-hide-some-destination-list/m-p/295772#M248902</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2015-08-10T12:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: CopyMoveTo hide some 'Destination' list</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/copymoveto-hide-some-destination-list/m-p/295773#M248903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steven,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for such a quick and detailed response. You response is loud and clear!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nikesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 11:29:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/copymoveto-hide-some-destination-list/m-p/295773#M248903</guid>
      <dc:creator>nikes</dc:creator>
      <dc:date>2015-08-12T11:29:06Z</dc:date>
    </item>
  </channel>
</rss>

