<?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 Disabling the 'upload file' button based on directory name in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/disabling-the-upload-file-button-based-on-directory-name/m-p/247732#M200862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to disable the "upload file" button which is in the toolbar.lib.ftl file, when the name of the current directory fulfills some critera (contains a specific word for example). The problem is that I can't seem to find out which variables to use for that purpose (I've really been searching the wiki and forums and I can't find just a general list of the variables that are available, I know that I have user, as in user.isAdmin and page, as in page.url, but where can I find a complete list?). Can anyone help me?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2012 14:47:38 GMT</pubDate>
    <dc:creator>haffi67</dc:creator>
    <dc:date>2012-03-23T14:47:38Z</dc:date>
    <item>
      <title>Disabling the 'upload file' button based on directory name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/disabling-the-upload-file-button-based-on-directory-name/m-p/247732#M200862</link>
      <description>I'm trying to disable the "upload file" button which is in the toolbar.lib.ftl file, when the name of the current directory fulfills some critera (contains a specific word for example). The problem is that I can't seem to find out which variables to use for that purpose (I've really been searching t</description>
      <pubDate>Fri, 23 Mar 2012 14:47:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/disabling-the-upload-file-button-based-on-directory-name/m-p/247732#M200862</guid>
      <dc:creator>haffi67</dc:creator>
      <dc:date>2012-03-23T14:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling the 'upload file' button based on directory name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/disabling-the-upload-file-button-based-on-directory-name/m-p/247733#M200863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Override the toolbar.get.head.ftl to include a new custom javascript file with a javascript class that extends the Alfresco.DocListToolbar class and overrides the onFilterChanged method. Make your overridden method disable the upload button ( this.widgets.fileUpload.set("disabled", true); ) when some conditions apply (and enable when they don't) and directly after that call the the super class method you overrid simply by calling Alfresco.DocListToolbar.superclass.onFilterChanged(this, layer, args)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Override the toolbar.get.html.ftl template and change the javascript class that is instantiated to become your new custom javascript class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:: Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 08:23:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/disabling-the-upload-file-button-based-on-directory-name/m-p/247733#M200863</guid>
      <dc:creator>erikwinlof</dc:creator>
      <dc:date>2012-04-02T08:23:41Z</dc:date>
    </item>
  </channel>
</rss>

