开发者

Multiple schools on moodle

I'm trying to setup multiple school in a single moodle installation

I 开发者_如何转开发know Moodle does not supports it


Try IOMAD (http://www.iomad.org/) for Moodle. It allows you to have Multiple Schools within the same Moodle, you can create schools (they call it companies), departments within a school, assign users to schools and every school can have their own logo, courses and users.

It has version from 2.5 until 3.0, you can download the code for free here: https://github.com/iomad/iomad


I'm about to try using the same code base installation to run multiple moodle sites each with a different db. This is how I intend to do so hope it helps.

Point multiple domains to the same folder.

Edit my config file so that it has a list of incoming domains then changes the database and the datadir depending on the incoming name map.

pseudo code below

$domains = ('somedomain' => (object) array('dbname' => 'somedb', 'dbpass' => 'somedbpass', 'datadir' => 'somepath');

$domaincfg = $domains[$_SERVER['HTTP_HOST']];

// set the appropriate variables on the cfg dynamically including the wwwroot
$CFG->wwwroot = http://'.$_SERVER['HTTP_HOST'];
etc.

If you are trying to partition user's from each other within the same database of courses you should look into course groups using separate mode. That is the closest you will get without doing a bunch of coding. You can even assign each user a specific theme so the site will look totally different but this is a manual process so it is a pain.


Moodle Instance Management This might help. You will have to install the VMoodle block and add it to a page to access the settings of this plugin. And there is also a discussion about multi tenancy in the moodle forum

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜