is it possible to alter the output of the File type display for documents? I am using the Generic File option to display PDF's at the bottom of nodes and would like these documents to open in a new window.

Outside the context of views that is, I would prefer to just override the output or theme of the media output rather than recreating this in views.

=Nathan

Comments

vedeem’s picture

subscribe

baddysonja’s picture

subscribe

thalemn’s picture

Nathan,

I found success with this posting:

https://www.drupal.org/node/301234#comment-4764468

Added the function to the template.php file (changed theme name), and now all PDFs open in a new window.

chris matthews’s picture

Version: 7.x-2.0-alpha4 » 7.x-2.x-dev
Status: Active » Closed (outdated)

Recent versions of media have resolved most of peoples concerns and is compatible with entity translation, multilingual and various advanced configurations. Due to the high volume of inactive and most often irrelevant issues we are Closing this as (outdated). If for whatever reason this issue is important to you AND you still have issues after checking the media recipe documentation, then let us know and we will review your concerns.

Otherwise, see the recipe documentation for how to configure media and for troubleshooting tips OR refer to the media_dev distribution if you want to see a working media setup.

As mentioned, feel free to make some noise in this issue if you still feel it is important to you or someone else.

Thanks,

Media team