I'm currently referencing media elements in a text area using media filter (similar to http://drupal.org/node/1048698 ). This successfully renders the image into the node view, but it's missing the Caption and Creator fields I've defined. Notably, with Format settings: Rendered file and the same view mode as used in the media filter token an image field attached to the content type renders the image with Caption and Creator fields.
Inspecting the elements via drupal_render(), the image render array from the field has many common elements but the Creator field (an entity reference) has been included in the array with the full reference entity but this is absent from the render array via media_filter.
Are there some extra steps that media_token_to_markup() should be going through to ensure fields associated with the view mode are rendered? Is there a way to force the output to be a rendered file via the media filter token?
Comments
Comment #1
devin carlson commentedThis was fixed by #1421786: display fields when embedding with WYSIWYG.
Comment #2
jonathan_hunt commentedThe fix referenced above only applies to 7.x-2.x. Since the 2.x branch is nowhere near stable, a solution for 1.x is still needed.
Comment #3
chris matthews commentedClosing 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