I found that the contextual links, though supporting code exists, do not show when displayed as rendered file.
I dug pretty dip into both this module and the contextual links module to try and find the reason they did not appear but without luck.
My final solution was overwriting the tile_entity tpl file and preprocess file to add the links manually (I know, not a good solution).
P.S.
one of the classes of the file_entity div is contextual-links-region which suggests that the entity is being processed by the contextual links module but the edit link is not added. I believe this might be related to the fact that the edit link is provided by the media module (e.g. media//edit/nojs).
Comments
Comment #1
eyal shalevComment #2
eyal shalevComment #3
dave reidI figured out a way to support this. We had to disable the file name being output as the 'title' in file_entity.tpl.php because it was generally undesired. If we add an 'element-invisible' class to the title, we hide the title but still support anything output *along* with the title, including contextual links.
Fixed with 7.x-2.x: http://drupalcode.org/project/file_entity.git/commit/389aa79