Needs review
Project:
Context
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2010 at 03:17 UTC
Updated:
8 Oct 2012 at 19:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
timcosgrove commentedI made a minor usability improvement to this patch; it now says 'Show/Hide empty regions' depending on whether they are hidden or shown. The patch is re-rolled.
Comment #2
yhahn commentedComment #3
indytechcook commentedI just noticed something on tim's patch. Where he setting the value for the button:
The context_ui_editor_toggle_status variable holds an uid=> status array so it shouldn't be pulling the array_values and needs to check the $user->uid;
Neil
Comment #4
indytechcook commentedProbably should add a few more items to make this a little better.
1. Tell the user, very obviously, what mode they are in.
2. When the user presses "save changes" it turns the setting off for the user.
Now to get a patch.
Comment #5
yhahn commentedI took a look at this and I think it's a good idea/right direction but needs some work. My thoughts:
If this is a per-user setting I would like to move it out of the variable system entirely and use
$user->dataor even the user's session. This would also mean that this setting is in some sense a temporary/administrative setting (which makes sense).I'd like this to be implemented at the block reaction plugin level, not the
context_uilevel.Comment #6
xjmTracking.
Comment #7
indytechcook commentedUpdated patch using the block reaction. I wanted to use ->editor_form_submit() but the press_button element isn't passed, only the values from that plugin. No worries as I didn't want to react to the save button anyway.
Cheers!
Comment #8
yareckon commentedAlso looking forward to this being standard.
Comment #9
michaellander commentedAny word on this making it into HEAD? The admin module used to have this as a setting, but it has since been removed and I think it is tremendously useful. Same with the drupal 7 version. I'd be happy to help anyway I can.
Comment #10
henrijs.seso commentedSome dynamic updating would be good. AJAX is less cool with workflow that reloads page
twothree times.Comment #11
ultimateboy commentedRe-rolled this against 7.x-3.x-dev. No dynamic updating with ajax, just a straight re-roll of #7.
Comment #12
yareckon commentedIf firmly believe that this not being in context by default is a big reason why a huge number of people aren't managing their layouts with context editor. I'm gonna go and set this to major. Under feature requests, that shouldn't create too much queue noise.
Comment #13
goron commentedI'm looking for a similar functionality at the moment. My observations so far on this:
The problems
The patch so far
Solving the problems
I've been trying to work on this patch, but this is where I get kind of stuck and am not sure how to proceed. I'm interested in getting feedback about this, and hoping this summary will refresh the issue. Please let me know if you disagree with anything or if I left things out.
Comment #14
mrfelton commentedEssentially, I with everything said in #13. And, the patch so far is a good start, although it does't actually work for me. Attached is a version that does work. It changes the logic in editable_region() so that the empty regions are only shown if the context_ui_editor_present is actually true. Unless I'm missing something, It doesn't make any sense to show them otherwise.
@goron - I'm pretty new developments will be going in against the 7.x branch first, with a possible backport to D6. So this should be set to 7.x-3.x.
Comment #15
mrfelton commentedPatch updated against latest dev
Comment #16
jpstrikesback commentedCorrect me if I'm wrong but this needs unassigned.