In Alfresco 4.0, I’d like to extend Share Doclib Filter webscript to add my own customized filter.
- Is there a simple way to add my own filter in the
share-config-custom.xml? - How do I define my own filter on the repository side?

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are 2 steps involved:
Adding the link by customizing the document library with your own module(see alfresco Help):
extend the webscripts
filter.get.jsandrepo-filter.get.js(add them inweb-extension / site-webscripts / com / company/ components / documentlibrary /)extend the property file with your own labels
in
alfresco / templates / webscripts / org / alfresco / slingshot / documentlibrary-v2 /Copy paste the
filters.lib.jsand add your logic: