Export Role

Export Role

by Carlos Martinez -
Number of replies: 2

Hello I'm using moodle 2.5.

I found this article to export a role. But i can't find the export button, should i install something else?

http://docs.moodle.org/26/en/Role_export_and_import

I need to export the role to another site

Help, thanks best regards

 

Average of ratings: -
In reply to Carlos Martinez

Re: Export Role

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Hello there. You are using Moodle 2.5 but you are looking at documentation for Moodle 2.6 The roles import and export feature is available from 2.6 and not 2.5, sorry.

Average of ratings: Useful (1)
In reply to Carlos Martinez

Re: Export Role

by Sen G -

Hi Carlos,


The absence of import/export feature doesn't mean that you need to manually do all the stuff.  


1. You click on create role, fill the first few text boxes meant to fill the short & fullnames.


2. Go to the existing site with roles & capabilities defined, edit role. open your browser's console, go to the DOM element with Id, "defineroletable" copy the html as html.


3. Go to the new site, locate the same dom element, replace the same DOM element with the one you copied from your old site.


You can live with Moodle 2.5 with this hack until you upgrade to 2.6