Hi everybody.
Moodle has a particular feature with the URL in a courses.
For example:
I want to access a course. There are three ways to access the course
- ID: moodle/course/view.php?id=6
- Shortname: moodle/course/view.php?name=Course1
- Idnumber: moodle/course/view.php?idnumber=P1233
I need the same functional in activities. For example:
- /moodle/mod/forum/view.php?idnumber=forum1_2
- /moodle/mod/assign/view.php?idnumber=assign1_3
Thus I can solve the problem with URL in HTML files when restore a backup in a new Moodle installation, because the idnumber is always the same.
I try to modify the view.php of each activity, but I do not understand all the code blocks.
Can you help me? Thanks
I show an example:
moodle/mod/forum/view.php