URL with idnumber in activities (2.8.3+)

URL with idnumber in activities (2.8.3+)

by Stephany Méndez -
Number of replies: 0

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

  1. ID: moodle/course/view.php?id=6
  2. Shortnamemoodle/course/view.php?name=Course1
  3. Idnumbermoodle/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 smile

I show an example:

moodle/mod/forum/view.php


forum

Average of ratings: -