Last updated November 27, 2012. Created by indytechcook on October 17, 2012.
Edited by olleolleolle. Log in to edit this page.
Video Link: http://youtu.be/cIk5F14Fd2s
Context Build Steps
Summary
The end result of this tutorial, you will have a the ability to revision and preview page-level layout changes.
Modules Needed
- ctools
- xautoload
- SPS
- IIB
- Context Version > beta4
- Context Field > beta4
- State Machine or Workbench Moderation
- Date if using State Machine
Patches needed
Build Steps
- Download Modules.
drush dl ctools, xautoload, sps, iib, context, context_field
- Apply Patches
- Drupal Core
- Change the directory to the drupal root
- Download Patches
wget http://drupal.org/files/1728568_add_alias_to_node_query.patch
wget http://drupal.org/files/1730874_0.patch
- Apply Patches
git apply -v 1730874_0.patch
git apply -v 1728568_add_alias_to_node_query.patch
- Context Field
- Change to the Context Field directory
- Download Patches
wget http://drupal.org/files/context_revisions.patch
- Apply Patch
git apply -v context_revisions.patch
- Drupal Core
- Setup Default Context
- Go to admin/structure/context.
- Either update an existing or create a new context and note the name.
- Go to admin/structure/context/settings and enabled "Use Context Editor Dialog"
- Add the Field to a content type using the "Context per Revision" widget.
- Select the default context you created in step 3.
At this point you should have a content type setup that will create a new Context for each revision. The next part walks through using SPS to preview the revision with the context.
Without SPS, you would not have a way to edit the context for a non-published revision outside of the Context UI. SPS overrides the node revision page and loads the correct revision of the node which has the correct Context. Then the Context Inline Editor can be used.
Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.