Closed (fixed)
Project:
Context Node
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2011 at 08:08 UTC
Updated:
18 Mar 2011 at 17:21 UTC
Hi and thanks for this great module. I have edited your code and changed the type=> select to radios.
This enables me to select a contect in the node form via a radio button. The reason why I have done this is to make a themable selection of the node context layout (Same way panels presents an layout selection via radios and image thumbnails) Not every one would want to go through the design of layout thumbnails and would prefer a normal dropdown select list.
This is not such an important feature request but I just want to mention that this nice themeing can be achieved by simply changing the following code:
Line 70: '#type' => 'select',
to: '#type' => 'radios',
Comments
Comment #1
lelizondo commentedIf I add the possibility to select between having a select or radios I think it would add some unnecessary complexity to the module. I'll just make all selects radios instead.
I actually was thinking about the possibility to somehow match an image to a context. I still have no idea on how to do this. I might have to create another module for that, maybe, I don't know submit a patch to context.module. I really have no idea, if you would like to help with ideas, those are more than welcome.
I'll move this to 7.x-1.x-dev and then backport it.
Comment #2
lelizondo commentedBoth have been committed and pushed. 6.x-1.x and 7.x-1.x
Use and test the -dev version please. Thanks.