You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As media display strategies are not aware of the context, it is not possible to have a different rendering for a same format of a media. It could be useful to give ability to pass a third parameter to specify a rendering "mode" to the method \OpenOrchestra\Media\DisplayMedia\DisplayMediaInterface::displayMedia().
Here is an example use-case :
For my advertisement banner, I want to display an image/video corresponding to the original format of a media using only the <img> or the <video> tag.
For my slideshow, I want to display an image/video corresponding to the original format of a media and, net to it, a description of the media and its credits. To do so, I want to use <figure>, <figcaption> and a the <img> or <video> tag.
If I had a "mode" parameter, I would have one called "media_only" and one called "figure" that can be used to adapt the rendering.
The text was updated successfully, but these errors were encountered:
For the second case I assume you are in the context of a block. In that context you have access to the block controller, so you are able to get from the controller all the media attributes you want without using the display_media() helper in the twig. That way you can construct the media tags manually in the twig of the block. This is done in the gallery block and the slideshow block delivered with Open Orchestra.
Nethertheless, It could be a good feature to add to Open Orchestra to allow more elasticity to the dev process.
As media display strategies are not aware of the context, it is not possible to have a different rendering for a same format of a media. It could be useful to give ability to pass a third parameter to specify a rendering "mode" to the method
\OpenOrchestra\Media\DisplayMedia\DisplayMediaInterface::displayMedia()
.Here is an example use-case :
<img>
or the<video>
tag.<figure>
,<figcaption>
and a the<img>
or<video>
tag.If I had a "mode" parameter, I would have one called "media_only" and one called "figure" that can be used to adapt the rendering.
The text was updated successfully, but these errors were encountered: