How To Add File Manager File Menu Items

Permalink
Hey everybody,

I am trying to expand my file manager. When you are in the dashboard, and you go to file manager and click an image, a menu pops up with options like "View, Edit, Properties, Replace, Copy, Sets, etc". I'd like to add a new menu item to that list, but I'm afraid I have no idea how to even start.

In my /concrete/elements/files/search_results.php file I see something like this:

<tr class="ccm-list-record <?php echo $striped?>" ccm-file-manager-instance="<?php echo $searchInstance?>" ccm-file-manager-can-admin="<?php echo ($pf->canAdmin())?>" ccm-file-manager-can-duplicate="<?php echo ($pfg->canAddFileType($f->getExtension()) && $pf->canWrite())?>" ccm-file-manager-can-delete="<?php echo $pf->canAdmin()?>" ccm-file-manager-can-view="<?php echo $canViewInline?>" ccm-file-manager-can-replace="<?php echo $pf->canWrite()?>" ccm-file-manager-can-edit="<?php echo $canEdit?>" fID="<?php echo $f->getFileID()?>" id="fID<?php echo $f->getFileID()?>">

I'm trying to reverse engineer whats going on, but cant see what these things relate too.

Any guidance would be appreciated :)