Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Probably out of scope for this module, but we have the need to link to a specific revision of a file in file_usage.
Comments
Comment #1
reubenavery CreditAttribution: reubenavery commentedIt's field_revision___ and field_data___ tables that need the revision_id column.
Comment #2
reubenavery CreditAttribution: reubenavery commented..or maybe both.
OK, getting in way over my head here but bravely I will plow along.
There's a related ticket in entityreference: #1837650: Allow referencing a specific revision ID
Comment #3
ericduran CreditAttribution: ericduran commentedI'm not sure I understand why they need to reference a revision_id?
The primary revision will be loaded either way. We don't really want to allow reference to non primary revision of a file entity mainly because that makes it overly complicated. Also its a bit of an edge case.
Comment #4
reubenavery CreditAttribution: reubenavery commentedYeah, it's a huge edge case. ;-) and it's making me a head case.
It's important for us however, because of the field data attached to an an image that is used in multiple articles. For each article, the image may have a different caption, for example. My plan was to allow overriding of the file entity's primary revision by creating a shadow revision and linking that with the node's image field.
Comment #5
reubenavery CreditAttribution: reubenavery commentedClosing this. I'll pursue in a custom module and if I'm successful will share as a sandbox.