hello

i can't find an option to mark all terms of an vocabulary - is there one?
if not: is it possible to implement?

thanks momper

CommentFileSizeAuthor
#3 taxonomy_manager-n606344.patch3.01 KBdamienmckenna

Comments

ilw’s picture

Subscribe

damienmckenna’s picture

Something like what VBO has would be useful:

  • One option to select all of the items currently displayed,
  • A second option to then optionally select all terms matching the current filters list.
damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new3.01 KB

Here's a patch to add a checkbox at the top of the tree, and it works with both single trees and double tree displays.

momper’s picture

super!

greg.harvey’s picture

Status: Needs review » Reviewed & tested by the community

Works for me! Life saver! =)

greg.harvey’s picture

Version: 6.x-2.1 » 6.x-2.x-dev
Status: Reviewed & tested by the community » Needs work

Actually, revoking that. It does work, but in Firefox 3.0 there's a little quirk making it impossible to expand the first item in the tree. I only noticed this on another site where I applied the patch, where I needed to expand the first term to manipulate its children and couldn't. So needs a little work, but broadly works great!

Will supply updated patch if I get a chance to fix this before anyone else does.

mh86’s picture

Hi!

I took a look at the patch and here some thoughts:
The Taxonomy Manager already has some code for selecting checkboxes (in tree.js), so maybe we can reuse or adapt it?
Furthmore, I don't really like adding JS and forms inline and I would suggest using the "select all children" icon instead of another checkbox.

mlncn’s picture

Version: 6.x-2.x-dev » 8.x-1.x-dev
Issue summary: View changes

The need for a "Select All" feature remains in the current actively developed branch!

Being able to select the top box, scroll to the bottom, and have them all selected by holding down 'Shift' (or control or really anything) would also meet this need without requiring more buttons.

jacobsanford’s picture

Sounds like a great feature!

From the example on the FancyTree page:

http://wwwendt.de/tech/fancytree/demo/sample-select.html#

it seems that feature should be straightforward to implement. I'd welcome a patch.

ivnish’s picture

Status: Needs work » Patch (to be ported)
nicodh’s picture

Hi,

With just some quick tests, I could make it work with a fancyTree extension (https://github.com/mar10/fancytree/wiki/ExtMulti)

  • Use all bundle in libraries.yml : //cdn.jsdelivr.net/npm/jquery.fancytree@2.37.0/dist/jquery.fancytree-all.min.js
  • In fancyTree options, allow keyboard and add settings :
    keyboard: true,
    multi: {
       mode: "sameParent"  // Restrict range selection behavior
    },
    extensions: ['multi'],
    

I can make a patch if you want, but I need help to test side effects (eg: why keyboard is set to false ?)

Thanks