AnsweredAssumed Answered

How to add custom filters to Share/Repository

Question asked by webdesigner on Mar 18, 2012
Latest reply on Mar 19, 2012 by afaust

I need to add custom filters in the navigation panel for Sites and Repository (similar to All Documents, I'm editing etc. but searching for custom metadata).

I implemented a new Share extension for filter - component (I mean <region-id>filter</region-id>) and managed to display custom filters.
I use BaseFilter 
new Alfresco.component.BaseFilter("Alfresco.MyCustomFilters", …

so by clicking to my custom filter, the doc list will be refreshed with parameter filter=<new filter value>
E.g.: http://localhost:8080/share/page/site/test/documentlibrary#filter=myCustomValue%7C&page=1

But how to extend the Repository logic, that loads the filtered data for the document list?

I figured out, that the filters logic is implemented here:

in the method:

case "editingMe":
            filterQuery = this.constructPathQuery(parsedArgs);

I can overwrite this file and add my own code in filters.lib.js, but I want to avoid changing of standard Alfresco files because of further version-update problems.

So the question is:
Is there any way to extend Alfresco to handle custom filter values?

Thanks in advance

Best regards