cancel
Showing results for 
Search instead for 
Did you mean: 

custom filter

_jan
Champ on-the-rise
Champ on-the-rise
Hi,
I want to add custom filter to list only document which have some atributes. I found some old articles and those tutorials arent working for me (for example this one: http://www.slideshare.net/alfresco/apps-2-customizingthedocumentlibrary). I am posting image to show you what I want to or where I want to add those filters.
1 REPLY 1

_jan
Champ on-the-rise
Champ on-the-rise
I found good way to solve this by this post : http://stackoverflow.com/questions/8400006/customizing-doclib-filter-in-alfresco-share/8464015#84640....

In first step, those customization lines must be written into file.xml which is placed at
share-war/src/main/amp/config/alfresco/site-data/extensions
folder. And whole file looks like this:

<extension>
   <modules>
      <module>
         <id>User Sites Menu Customization</id>
         <auto-deploy>true</auto-deploy>
         <description>Add additional data to the users sites menu</description>
         <customizations>
            <customization>
      <targetPackageRoot>org.alfresco.components.documentlibrary</targetPackageRoot>
      <sourcePackageRoot>com.yourcompany.components.documentlibrary</sourcePackageRoot>
       </customization>
         </customizations>
      </module>
   </modules>
</extension>


filter.get.js and repo-filter.get.js files are at
Alfresco\tomcat\webapps\share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary
.
In first step you work with repo structure.

Second step is easy and filters.lib.js file is at
Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\slingshot\datalists
.
In second step you work with share structure.