Category Duplicate

General plugins (Local) ::: local_catdup
Maintained by Yedidia Klein
Local Plugin for duplicating a category and all it sub categories and courses to a new empty category. Usefull for new year creation.
Latest release:
412 sites
111 downloads
13 fans
Current versions available: 2

Local Plugin for duplicating a category and all it sub categories and courses to a new empty category. 

Usefull for new year auto creation of all courses including all content.

Screenshots

Screenshot #0

Contributors

Yedidia Klein (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Yedidia Klein
    Tue, 17 Aug 2021, 9:31 PM
    There were a problem with this plugin on 3.10 and 3.11, uploaded a new version for these Moodle releases. (Thank you Andrea Pietro Briganti for helping to debug...)
  • Blair F.
    Wed, 20 Oct 2021, 7:04 AM
    The 3.10/3.11 version (2021042900) appears to work fine in 3.9, as well. My only issue at the moment is with the sorting of the Origin and Destination drop-down list. I really do wish it was alphabetical, rather than by category ID. We have so many categories, it's difficult to find. Alternatively, if the ID was shown at the beginning of the name, it would still be easier (e.g. 1234 / Category Name).
  • Blair F.
    Thu, 21 Oct 2021, 1:41 AM
    I made a little hack to the local_catdup_main_form.php file, after line 41 (added: $catpath[$category->id] = $category->id . ' - '; ) and now the ID number appears in front of the category name for me. Much easier to work with. I hope that you can make this change a little slicker in your next update. smile
  • Jacques Barzic
    Mon, 8 Nov 2021, 7:04 PM
    Hello,
    it seems that this plugin is accessible only to "Site Administrator" role (I've make a test on Moodle 3.9).
    Is it possible to make it accessible to "Manager" role?
  • Blair F.
    Thu, 2 Dec 2021, 12:49 AM
    Hey, Jacques, I suggest you add it to the Bug Tracker (link above) as a suggestion. I think it's a good idea.
  • Blair F.
    Wed, 12 Jan 2022, 5:51 AM
    I'm really hoping to see some activity on this plugin, because it could be so useful with some of the kinks worked out.
  • Farhan Yugarpaksi
    Wed, 6 Apr 2022, 3:50 PM
    Hi, I tried to duplicate a category, then I got a notification via email that the category is not empty. Even though I have created an empty category before. Is there any solution? Thank you in advance
  • Steve Taylor
    Tue, 19 Apr 2022, 12:29 AM
    Thanks for making this, but I don't understand how the shortname extension is supposed to work. I supplied an extension, but it just added _1 instead. And can there be a way to *not* add "copy 1" to the new course name?
  • Steve Taylor
    Tue, 19 Apr 2022, 12:31 AM
    This would be super useful for me if it could also copy over the Category ID, with a supplied name extension. Thanks.
  • Blair F.
    Thu, 2 June 2022, 12:05 AM
    Steve Taylor, I am having the same issue. I'm really hoping that Yedidia can find some time to work on this, or pass it on to someone else so that it can be further developed. It has GREAT potential.
  • Nora Colazzo
    Tue, 5 July 2022, 7:19 AM
    I was wondering if there is any documentation about using this plugin. I just wish to understand the extension of new courses and old courses as this feature doesn't seem to do anything. Cloned courses are not carrying over the information that I input. It would be great to have some understanding of how this plugin should work. I would appreciate anything at this stage. Thanks.
  • Markus G
    Wed, 5 Oct 2022, 8:47 AM
    you did a great job here. I also think the plugin is very important. hopefully it will become a mainstay of moodle in the future. if i understand correctly, moodle (not the plugin) adds copy1 to the course name itself, because the course name cannot be the same twice. The plugin could fix the name before the course is recreated, e.g. replace 2021 => 2022 and then no copy1 would be added by Moodle.
  • Arnaud Fily
    Tue, 9 May 2023, 9:00 PM
    Hello, it doesn't work for me. Ihave a message "your request was inserted into queue, you will get an email while done.". Does anayone have the same message?
  • Muhammad Mosa
    Tue, 23 May 2023, 1:26 AM
    Thanks, it works for me. I installed on Moodle 4.2.
  • Via Serenella
    Fri, 4 Aug 2023, 9:06 PM
    It works well but I spot an issue : cohort as enrolment method is not considered. After the duplication that method disappeared from the course. Any suggestion?
1 2
Please login to post comments