At the moment it looks like the $recursion queue check that goes on in file_entity_field_formatter_view() is so strict that it doesn't allow you to make greatly intelligent use of the 'rendered_file' in other view modes.

I propose we decrease it's checks to allow recursion as long as it's for a different view mode.

Patch to follow.

CommentFileSizeAuthor
#1 media.1700456.01.patch2.17 KBjamsilver
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jamsilver’s picture

Assigned: jamsilver » Unassigned
Status: Needs work » Needs review
FileSize
2.17 KB

Patch attached.

Status: Needs review » Needs work

The last submitted patch, media.1700456.01.patch, failed testing.

Chris Matthews’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team