Closed (fixed)
Project:
Features
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2010 at 19:53 UTC
Updated:
12 Jul 2013 at 23:21 UTC
It would be extraordinarily helpful if there were a "select all" option when editing the permissions to use in a feature. As it stands now, if you are running a large site with many modules, this requires a huge number of clicks, which can be difficult on slow browsers.
Thanks for considering my suggestion
Comments
Comment #1
yhahn commentedAgreed, but unfortunately it will not be an easy fix to just use
theme_table_select_header_cell()as it does integrate in quite the right way withahah.jsWill look into this post 1.0.
Comment #2
bibo commentedThis would be really handy indeed. I'm having a site with somewhere a few hundred separate permissions(!). Don't like to click each of them.
Comment #3
orjantorang commentedIt would really be appreciated with a select all option, mostly for permissions but even for CCK-fields, but I guess it will be able for all kinds if it's developed.
Comment #4
podaroksubscribe
really need it, especcialy for strongarm tab and permissions tab
Comment #5
dsnoeck commentedJust found a workaround for selecting all checkbox :
- Use firefox and the Web Developer Toolbar addon
- In the WDT addon there is Forms features, the penultimate item is "Populate form field", which will automatically select all checkbox :-)
EnjoyUPDATE: Forget this workaround, this will check all checkbox of all components !
Comment #6
kristen polSubscribing... I just clicked a hundred checkboxes and then the browser died... argh!!!!!! My hand hurts.
Maybe a possible alternative to this would to have a non-ajax version of the form and use the check all module or some similar code. The ajax is super slow in FF and freezes it up regularly.
Back to clicking... again... :(
[note to @podarok] Beware of checking *all* checkboxes on strongarm... I've been burned by this. You should only check ones that are *configurable* through the UI, not ones that are set by a module directly. I think this needs to be more cleverly handled in features because it's too easy to shoot yourself in the foot as I have found.
Kristen
Comment #7
Grayside commentedIt is worth considering that while Features can do great work with exporting all your configuration to Code, it was intended to be more surgical with exports--only exporting those components directly related to a rather narrow use case, such as a Blog feature.
It might be a good idea to step back and think about how the UI should be structured to be used for both purposes, or whether the UI should be separated--one for Features-building, one for mass configuration export.
I kind of lean toward the latter, as placing a select all on the features UI will lead newcomers down the mass export path, instead of the preferred "lean" exports. http://drupal.org/project/kit.
Comment #8
kristen polI looked at the strongarm module to see how they automatically include some of the comment_* variables that correspond to content types you have selected. It was pretty straightforward so now I have some code in my custom module that adds in content-type-specific variables and permissions like:
I'm working on finding a way to select all perms without conflicting with other features. I will post something if I figure that out.
Kristen
Comment #9
alberto56 commentedSubscribing
Comment #10
westbywest commentedSubscribing. Would also be nice to see this for D7 too.
Comment #11
Grayside commentedAs a feature request, this kind of thing needs to start in D7 and get backported.
Comment #12
ohthehugemanatee commentedThis bulk export interface would be a powerful addition to something like profile_builder . One of the most time consuming parts of creating an installation profile is bundling settings like permissions, block positioning, views... all things that Rules does very well. All it would need is a more bulk-oriented UI.
Come to think of it, Features is already pretty close to a perfect install profile builder, minus the bulk-friendly UI. Anyone here interested in a submodule for creating install profiles?
Comment #13
btopro commentedI assume you mean http://drupal.org/project/profiler_builder and yes that would be a very powerful submodule (disclaimer: original creator of profiler_builder) ;)
Comment #14
wildermuthn commentedWell, this is quite the hack, but it works for me. It requires Chrome, or a similar setup with another browser.
First, inspect the checkbox container. The height is set at 20em. Make it really really really big. Big enough to show the entire list.
Second, use the Google Chrome extension, "Checkboxer". It allows you to click, hold the click, and drag over all the checkboxes as you scroll down.
Third, check and uncheck one of the boxes to get the ajax rolling so that it realizes you just checked all those boxes.
Like I said, a terrible hack, but it saved me a boat-load of time.
Comment #15
jtwalters commentedQuick hack without requiring a browser extension:
Open the developer javascript console and run:
jQuery('.features-select-user_permission input[type=checkbox]').attr('checked', 'checked');Then uncheck and check a checkbox to trigger the AJAX update.
Comment #16
btopro commentedCouldn't this approach then be tied to a checkbox on the interface for "check all" to trigger this way without having to do funky things in the console?
Comment #17
jtwalters commentedI would say "select all" functionality via javascript is easy to implement, however, I'm just not sure how to trigger the AJAX event properly (i.e. elegantly). I could take a stab at implementing it if there's enough desire from the community. I suppose the number of replies in this thread provide evidence that it is desired.
Comment #18
mpotter commentedThis functionality has been committed to the latest version of the featuresUI-1.1 branch.
Comment #20
aron.beal commentedI think one can also do this through the firebug console via:
This appears to be moot, at this point; I see the 'select all' tickbox in my build. Still might be useful if something similar comes up.