Select Moodle version:

Blocks: Mass Actions block

block_massaction
This block allows instructors to perform actions upon multiple resources or activities, rather than having to perform repeated actions on individual items.
Maintained by: Picture of Huy Hoang Huy Hoang

This block allows instructors to perform actions upon multiple resources or activities, rather than having to perform repeated actions on individual items.

To use this block, Javascript must be enabled in your browser, you must be in editing mode in the course home page, and AJAX must be disabled. Only the courses in the Week or Topics formats are supported. The user also must have capability "block/massaction:use".

Supported actions include mass selection, indentation, deletion, hiding, showing, and moving. To select items to perform actions on, simply click the checkbox to the right of it in the course home page or use select functionality, then click the action you would like to perform in the block.

Note: the original block for Moodle 1.9 is on http://tracker.moodle.org/browse/MDL-20213; this is the version for Moodle 2.

Screenshots

screenshot

Contributors

Picture of Huy Hoang
Huy Hoang (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Elizabeth Dalton
    Tue, Nov 20, 2012, 3:13 AM
    Oh, and I can confirm that it is working on Moodle 2.3.3.
  • Picture of John Holmes
    Tue, Jan 8, 2013, 10:33 AM
    I have not had any luck getting this to work on ver 2.4.
    Has anyone else succeeded?
  • Picture of Michele Turre
    Sun, Jan 13, 2013, 2:17 AM
    Another feature request: It would be very useful when a course has custom "Section names" to have them show in the drop-downs (rather than Topic 1, Topic 2, Topic 3, or W 1, W 2, W 3, etc.).

    We had a couple of requests for this from our users and told them they could note the Section number they wanted to move. However, now that we upgraded to Moodle 2.3, Sections are no longer labeled with numbers (not for either Weekly or Topics formats) and there is no longer a reference on the page. You can mouse over the Move icon for a section and the tool top will read, for example, "Move section 1," but you have to teach people it's there, so it becomes a support issue.

    And while I'm here, I like Elizabeth Dalton's request to be able to duplicate items. We often use labels to organize the contents within a section, and repeat them in every section. To be able to duplicate several at once would make our users very happy.
  • Picture of Elizabeth Dalton
    Tue, Feb 5, 2013, 11:53 PM
    Another request: take a look at this proposal: http://docs.moodle.org/dev/Linked_activities

    This proposal would allow the settings of multiple activities to be altered at once, e.g. changing the due dates, completion conditions, etc.

    This seems like it would be a very natural direction for this plugin to grow. My institution might be able to provide some funding, if there is other interest.
  • Picture of Huy Hoang
    Sat, Feb 9, 2013, 5:54 AM
    I'm starting to migrate this block to 2.4 for UMN, will looks into your suggestions/requests. Will get back shortly. Thanks much.
  • Picture of Rich Solomon
    Sun, Mar 31, 2013, 8:56 AM
    I can't seem to get this to work in 2.4. Further, when it's enabled on a course, the AJAX drag and drop functions for the course are suddenly removed. In 2.2, I had both working on a course, but in 2.4 it's not.
  • Picture of Huy Hoang
    Mon, Apr 1, 2013, 10:04 PM
    Uploaded a new version with just minimal changes to be compatible with Moodle 2.4; will look into suggested/requested features a little later. And no, this is not an April fool smile
  • Picture of Alan Taylor
    Thu, Apr 4, 2013, 7:27 AM
    I thought it wasn't working with ver. 2.4. However, I had installed and was using grid format. When I switched to topic format the mass action appeared in the add a block and worked fine.
  • Picture of Huy Hoang
    Thu, Apr 4, 2013, 10:42 PM
    Uploaded version 2013040400 that tries to parse the section names, as requested by Michele.
  • Picture of Michele Turre
    Sat, Apr 13, 2013, 1:11 AM
    Thank you! Section names do appear in the Select Section drop-down. Very helpful.

  • Picture of Rich Solomon
    Thu, Apr 18, 2013, 7:26 AM
    I grabbed the new 2.4 version, but I don't see it in the available list under the Collapsed Topics format. I changed to just Topics and it was there. Ultimately not a big deal. But is there any thoughts about adding a Mass Duplicate feature at all? I'm trying to get a common layout for each week, and was hoping that Mass Actions could shorten the work. wink
  • Also me
    Wed, May 22, 2013, 3:45 PM
    I've found the line that allows you to get it to work under other course formats.
    It's in: ../blocks/massaction/block_massaction.php ...line 39.
    Add:
    'course-view-courseformatname' => true
    replacing courseformatname with the appropriate course format (I've only tried it with grid).
    Disclaimer: I am not a developer and I've not rigorously tested this for problems.
  • Picture of Jerry Mathews
    Sun, Jul 21, 2013, 5:02 AM
    I installed this block and it was instantly loadable, however, any attempt to use it would result in a Internal Server Error page. After an hour of exploring, I discovered that he problem was in the permissions of the block files. So, using file manager in CPanel, I found that the permission for the files "action.php" and "block_massaction.php" were set to "666" I changed the permissions on both files to "644" and now the functions work perfectly even with AJAX still enabled within Moodle.

    It has already made my life so much simpler.
  • the feather in Illusions
    Thu, Oct 17, 2013, 11:49 AM
    We used it on 2.3x, 2.4x all working fine with one drawback, once the block enabled, the core's moving resource/activity no longer working.

    To move a single resource/activity position within a unit, you have to clear this add-on block.

    Hope anyone can confirm or show me other ways to make this two task can work together. Otherwise, hope the future version can address this problem

  • Picture of Huy Hoang
    Thu, Nov 21, 2013, 11:07 PM
    @Chiu Charlie: there was a javascript error when used with 2.6 (and 2.5?) that break the page' script, fixed this in version 2013112101.
1 2
Please login to post comments