Problem/Motivation
As I understand right now Media view modes are actually obsolte with rift. But for some cases it makes sense to use rift as an image formater inside view modes. For example to embedd images via CKEditor. Also if you want to extend the media entity with descriptions etc.
Proposed resolution
Lets create an image field formatter which actually is doing the same thing as reference formatter. What do you think?
Issue fork rift-3535046
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
christian.wiedemann commentedComment #3
d34dman commentedRight now this is not supported via UI.
However inside media template. You can use rift_picture Twig Function.
Example in media.html.twig, you can do something as follows.
Comment #5
christian.wiedemann commentedComment #6
d34dman commentedComment #7
d34dman commentedComment #8
d34dman commentedComment #9
christian.wiedemann commentedheyho nice wishes from munich. I rebased and added the abstract to the class.
Comment #10
christian.wiedemann commentedComment #11
d34dman commentedThanks @christian.wiedemann am merging this in. I forgot to copy the commit message properly which ended up not liking the commits to this issue queue. This is in 2.x-dev. (Ref: https://git.drupalcode.org/project/rift/-/commit/ca848e1ab9ecc08c8a85d7a...)