Hiding options from the "Open with..." menu

The options that are displayed in the "Open with..." menu are called "custom actions". Each custom action has a folder inside "/path-to-WebFileShare/customizables/custom_actions/". If you want to disable a particular option, you can do that by opening its "app.php" file in a text editor and adding the following line of code;

var $disabled = true;

right after the line of code that reads "class custom_ {" (usually located on line number 5).

For Web File Share versions 121211 or lower, this is the only way to do it:

Simply delete the folder or renaming it to add an underscore character in front of the name. For example, to disable Google Docs Viewer, you would rename the folder "google_docs_viewer" to "_google_docs_viewer". The disadvantage of this method is that it might cause some troubles when installing software updates. Some software updates add improvements to the custom actions and you might need to have to original file structure, for Web File Share to be able to install the update.

If you are not seeing the change, try to clear your browser's cache (delete temporary Internet files).

 

Attached Files
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Name
Email
Security Code Security Code
Related Articles RSS Feed
Custom CSS
Viewed 1993 times since Wed, Nov 22, 2017
Adding links to the menu
Viewed 2569 times since Thu, Mar 6, 2014
Calculating MD5 Checksums
Viewed 2696 times since Thu, Mar 6, 2014
Automatic Login
Viewed 2379 times since Wed, Nov 22, 2017
Running custom scripts when users perform various actions
Viewed 3444 times since Thu, Mar 6, 2014
Custom even scripts
Viewed 2607 times since Wed, Nov 22, 2017
Custom file actions
Viewed 2506 times since Wed, Mar 5, 2014
Forcing certain file types to download
Viewed 2753 times since Thu, Mar 6, 2014
Translating Web File Share
Viewed 20117 times since Wed, Mar 5, 2014
Counting file downloads
Viewed 3990 times since Thu, Mar 6, 2014
MENU