Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a mechanism for dynamically determining output of file entities #2721

Open
daggerhart opened this issue Jun 2, 2017 · 1 comment
Open

Comments

@daggerhart
Copy link

This relates to File entity and re-usable managed files system #1448

When we have much of the foundation of the managed file system in place, we'll want to make it as easy as possible to show media in the correct way. Images should use the common image formatter, while audio and video should also be able to display correctly automatically.

One approach to this is to have a new file field formatter which dynamically adjust the output based on metadata about the given fid such as mimetype, or file bundle type.

Exactly how this is implemented will need to be determined by the results of the tasks this depends on.

@Al-Rozhkov
Copy link
Member

@daggerhart please take a look at PR for #2632. What do you think about d7 file_entity approach? There is file_rendered formatter for file fields. Each view mode of each file bundle configured to have one or more file displays. First available file display is responsible for rendering file entity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants