Needs review
Project:
Node Hierarchy
Version:
7.x-2.x-dev
Component:
Drupal/PHP Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
2 Feb 2012 at 21:51 UTC
Updated:
6 Mar 2012 at 10:19 UTC
Jump to comment: Most recent file
Comments
Comment #1
ronan commented+1 on this feature!
Patches for this would be most welcome, but if none come I'll try and take it on at some point. Probably during my next D7 site build.
Comment #2
jgj commentedThis sounded like fun, not to mention useful, so I put something together. Not sure if it's exactly what you're looking for, but it's working on my end.
This adds two context conditions, one for parent node and one for parent node type. The parent node condition uses an autocomplete field to select a node. Currently it only looks for the primary parent and you can only select one node per context. Perhaps it would be better to offer the user the ability to select multiple nodes for a single context? And/or search the whole parent tree. Perhaps that last one should be a separate condition.
I'm new to this whole git patch thing so hopefully this works. Cheers.