
Blocks: Sharing Cart
block_sharing_cart
Maintained by
Don Hinkelman,
VERSION2 INC
The Sharing Cart is a block that enables sharing of Moodle content (resources, activities) between multiple courses on your site. Sharing Cart 3.0 was submitted to Remote Learner for independent vetting and passed May 2016. Updated and tested OK for Moodle 3.3, 3.4 on 10 January 2018. Includes new 'Section Copy' feature and Postgres compatibility.
1629 sites
1k downloads
82 fans
Moodle 2.3, 2.4, 2.5, 2.6, 2.7, 2.8
*Tested OK for Moodle 3.4* The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site. With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data--similar to the "Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators. Tested on Moodle 3.3, 3.4 and earlier versions. SC Version 3.3, release 3 fixes the version.php which incorrectly allowed Moodle 3.2 and lower users to install it.
Useful links
Contributors
Please login to view contributors details and/or to contact them
pix_url is deprecated. Use image_url for images and pix_icon for icons.
line 267 of /lib/outputrenderers.php: call to debugging()
line 126 of /blocks/sharing_cart/block_sharing_cart.php: call to renderer_base->pix_url()
line 110 of /blocks/sharing_cart/block_sharing_cart.php: call to block_sharing_cart->get_header()
line 288 of /blocks/moodleblock.class.php: call to block_sharing_cart->get_content()
line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 1197 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1249 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 579 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
line 177 of /theme/adaptable/layout/includes/header.php: call to core_renderer->standard_head_html()
line 31 of /theme/adaptable/layout/course.php: call to require_once()
line 1162 of /lib/outputrenderers.php: call to include()
line 1092 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 244 of /course/view.php: call to core_renderer->header()
I checked with the Adaptable devlopers, and they say it is not the theme...help??
Debug info: ERROR: syntax error at or near "'coursefullname'"
LINE 3: `fullname` AS 'coursefullname'
^
SELECT
mdl_block_sharing_cart.*,
`fullname` AS 'coursefullname'
FROM mdl_block_sharing_cart
LEFT JOIN mdl_course
ON mdl_block_sharing_cart.`course` = mdl_course.`id`
WHERE `userid` = $1
[array (
0 => '3',
)]
Error code: dmlreadexception
Stack trace:
line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 242 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
line 776 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
line 71 of /blocks/sharing_cart/classes/controller.php: call to pgsql_native_moodle_database->get_records_sql()
line 80 of /blocks/sharing_cart/block_sharing_cart.php: call to sharing_cart\controller->render_tree()
line 288 of /blocks/moodleblock.class.php: call to block_sharing_cart->get_content()
line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 1200 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1252 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 579 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
line 167 of /theme/adaptable/layout/includes/header.php: call to core_renderer->standard_head_html()
line 30 of /theme/adaptable/layout/columns2.php: call to require_once()
line 1162 of /lib/outputrenderers.php: call to include()
line 1092 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 244 of /course/view.php: call to core_renderer->header()
Postgres compatibility is now fixed on the Sharing Cart 3.3, release 2. Now featuring whole Section Copy feature. Thanks very much to Alex Bias of Ulm University for design collaboration, user testing, and funding support.
We have some problems when we try to copy H5P-activities to the sharing cart that it takes several minutes, often more than 5 minutes, for it to complete the copying. This is also an issue after the upgrade per January 10th. We use Moodle 3.3 with the Boost theme.
Do you have suggestions to why that is?
Thanks!
- MDL-12403: Minimize questions in Question Bank-original “Backup/Import of single quiz includes all questions in database” Bug—critical
- MDL-41924: Minimize questions in Question Bank-new
- MDL-19721: Put Sharing Cart into core.