This project is read-only.

Check-Uncheck al checkboxes in Contents List Page

Topics: Administration
Sep 4, 2014 at 4: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 7: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 9:02 PM
Edited Nov 21, 2014 at 9: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?