Check-Uncheck al checkboxes in Contents List Page

Topics: Administration
Sep 4, 2014 at 3:30 PM
Maybe I'm missing something obvious but...
Is there a way to tick all checkboxes in Content List Page before applying a bulk action?
I mean by clicking a button, not one by one :)
Nov 21, 2014 at 6:54 PM
Sure. Add a checkbox to the "List.cshtml" view under Orchard.Core.Contents. Then add something like the following js script to check the boxes:

$('#checkallcontentitems').change(function () {
        $('input[name=itemIds]').prop('checked', this.checked);
Nov 21, 2014 at 8:02 PM
Edited Nov 21, 2014 at 8:21 PM
I would appreciate to have this feature per default in orchard. Can somebody send a pull request or is there something to be said against it?