cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Share Document Library button action

sanoojkt
Champ in-the-making
Champ in-the-making
how the "New Folder" button action is triggered within the document library of Alfreso share
and which is the exact action script file?
12 REPLIES 12

tapan_d_thakkar
Champ in-the-making
Champ in-the-making
Hi,

i have created a custom button in my toolbar.
its working fine, but it appears in all folders.

I want to restrict this button for some particular folders only.
Say if user is in "Product" then and then this button should be visible else not.

can you suggest me any way/pointer for doing this ?

Thanks.

Hello tapan.d.thakkar,
can you please tell me how you made it work, because I've the same problem like sanoojkt;
the button is not clickable and does'nt trigger the appropriate action.
thanks in advance

mikeh
Star Contributor
Star Contributor
You'd need to add your logic into the onFilterChanged() function in toolbar.js (or override it and then call the overridden original).

Check that
this.currentFilter.filterId == "path"
and then inspect the new path in the
this.currentFilter.filterData
variable. You'd then enable or disable the button as appropriate.

Thanks,
Mike