|
|
| Participants: |
Paulo Matos and Petr Škoda (skodak)
|
| Security Level: |
None
|
| Resolved date: |
18/Dec/07
|
| Affected Branches: |
MOODLE_15_STABLE, MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE
|
Moodle has a problem with references within fields like summary, description, ... which affect resources, questions, ....
This problem is transversal to a lot of things and the result is that links get url/site dependent, thus making import, backup and restore, site moving not straight forward.
One way to solve this might be using special keywords (e.g. __COURSE_FILES) and build a filter that would replace them on-the-fly.
So instead of:
<a href="http://your.site.com/course/file.php/234/mydir/myfile.pdf">myfile.pdf</a>
would be, something like:
<a href="__COURSE_FILES/mydir/myfile.pdf">myfile.pdf</a>
|
|
Description
|
Moodle has a problem with references within fields like summary, description, ... which affect resources, questions, ....
This problem is transversal to a lot of things and the result is that links get url/site dependent, thus making import, backup and restore, site moving not straight forward.
One way to solve this might be using special keywords (e.g. __COURSE_FILES) and build a filter that would replace them on-the-fly.
So instead of:
<a href="http://your.site.com/course/file.php/234/mydir/myfile.pdf">myfile.pdf</a>
would be, something like:
<a href="__COURSE_FILES/mydir/myfile.pdf">myfile.pdf</a> |
Show » |
|
In 2.0 we may introduce "activity files" and store relative links internally, but it needs major changes in html editor, file.php, file storing and handling and many other areas...