===== Tool CohortFromCourse (export of enrolled users to a cohort): installation ===== Installing this component will require creating a "customscript" to implement the menu item in the course menu (until another solution is available - See the [[ToolCohortFromCourseTechnique|technical note]]). * Download and deploy the archive into the ''admin/tool'' directory of your Moodle installation * Navigate to the administration notifications to complete the installation. ==== Setting up customscripting ==== Your platform must support "customscripts": * in your Moodle root, create a directory ''/customscripts'' * in the config.php file add: $CFG->customscripts = '/customscripts'; ==== Setting up the link ==== * Copy the file /course/view.php to the path /customscripts/course * Remove the inclusion of the config.php file * Add a "die();" at the end of the file to avoid returning to the standard code * [[ToolCohortFromCourse|Back to the component index]]