Resources with moodle config

Resources with moodle config

by Mark Wong -
Number of replies: 0
We have a few moodle sites, and move them around to different test servers from time to time.

We have menu links to already created we pages, but when we move these installations (test versions) to a different location or server, we have to re-do the the link from the root of the system on all link using the WYSIWYG interface.

For an example, the link might be: /2007/lesson1/less01.php

but it won't find that unless I change it to /home/~user/moodle/2007/lesson1/less01.php.

Is there any why to put in $CFG->dirroot/2007/lesson1/less01.php?

That way I can move it to another location or server and have it still work.
Average of ratings: -