Context field should be able to attach to an entity id and a revision id. Currently it will only attach to a entity id.

CommentFileSizeAuthor
#3 context_allow_context_to_be_hidden.patch676 bytese2thex
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

indytechcook’s picture

Issue tags: +lsd-csi, +lsd-csi sprint 3

Adding to Sprint 3

indytechcook’s picture

Assigned: Unassigned » e2thex
e2thex’s picture

Assigned: e2thex » indytechcook
Status: Active » Needs review
FileSize
676 bytes

There is a new widget in context_field (branch context_per_revision)
One can add a context field using this widget to get a context per revision

EXTRA to Get the nice context editing

the following patch are needed
Context needs
http://drupal.org/files/context-context-ui-revamp-1050724-29.patch

context_field has a patch to remove its extra link to the context editor but it is not applying currently
http://drupal.org/files/1491008_Remove_Context_layout_link_0.patch

go to admin->structure->context->settings and set the
use context dialog

EXTRA hid context field contexts from context list

apply the attach patched to context

Set the default for the context field to Default Context Do Not List

set the drupal variable (using variable_set) context_do_not_list_tags to array('Default Context Do Not List')

indytechcook’s picture

Assigned: indytechcook » e2thex
Status: Needs review » Active

So it appears as there are 3 different patches here. 2 links and one attachment. Are there follow up issues on the context and context field modules?

indytechcook’s picture

Status: Active » Fixed

Closing this as it's the branch is working great now.

caschbre’s picture

Question... is the context_per_revision branch of context field something that can be used? I'm actually working on a site that has this need.

Any idea when these might also be rolled into the main release of context field?

indytechcook’s picture

@caschbre

Hi. Yes, We are currently using it on our prototype and the demo video used it also: http://www.youtube.com/watch?v=53QYiorBYS0.

I opened an issue on context field #1736558: Context Per Revision to track the progress.

caschbre’s picture

Excellent! I'm putting together a prototype soon utilizing this module and revisions so I'll try keep notes on it.

Where would you like any defects submitted?

Also... just so I'm clear... this is not revisioning the context itself. This is capturing which context is tied to which entity id / revision id, correct?

Assuming that's the case, if the context field is set to auto-generate a context per entity (instance), how is this handled with revisions?

Automatically closed -- issue fixed for 2 weeks with no activity.