Adding Support for revisions.

Created on 24 October 2013, over 10 years ago
Updated 6 May 2024, about 2 months ago

So I'm trying to add support for revisions for embedded views. I'm using a combination of Views, Field Collection, Field Collection Views and the Workbench Moderation module, but I think this would apply to anything that uses the Field Collection revision feature in the dev branch.

Here's the issue I ran into:

  1. create a view
  2. Add as a contextual filter
  3. Add field:

Outputting the raw data of this field as [field_featured_items-revision_id-value] ([field_featured_items-revision_id-revision_id])I can see that all the raw data needed is there (eg: field_ids and revision_ids.)

However, the revision_id is not currently passed to the embedded view which causes the wrong content to be rendered. I was able to find how to pass the revision_ids to the field_collection_views_field_formatter_view function.

This is when I ran into my primary problem. :)
The revisions are not stored in the field_collection_item table, but rather in the field_collection_item_revision table. Does anyone have any advice on the best way to change the view to this table? Should it be an additional contextual filter provided?

Any advice would be great.

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States voxelfox

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024