You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Naoki Sawada edited this page May 2, 2018
·
1 revision
About adding custom search function
In elFinder 2.1.38 or later, you can add custom search functions such as searching from content metadata.
Setting client options
Add the definition of the custom search method to the client option.
opts={url : 'php/connector.php',commandsOptions : {search : {// Additional search typessearchTypes : {// "SearchMime" is implemented in defaultSearchMime : {// The key is search type that send to the connectorname : 'btnMime',// Button text to be processed in i18n()title : 'searchMime'// Button title to be processed in i18n()},// This is custom search method for a function `searchMatchContents()` of your customized volume driverContents : {name : 'MetaData',title : 'Do serach contents of meta data.'}}}}}
Add function to volume driver
Add search matching method searchMatchContents() to your customized volume driver.
This function must return true or false as to whether or not it matches the condition.