Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: HTML linking.

HTML linking: Difference between revisions

From MoodleDocs
Line 3: Line 3:
==Formats of common internal links==
==Formats of common internal links==
Essentially the moodle id is a unique number.  Moodle calls up the right module in view mode and then points that towards an object that is identified with an id.  Here are some examples.
Essentially the moodle id is a unique number.  Moodle calls up the right module in view mode and then points that towards an object that is identified with an id.  Here are some examples.
 
===Course===
===Course===
http: // localhost/course/view.php?id=2  "Course 2"   
http: // localhost/course/view.php?id=2  "Course New" opening page"   
http: // localhost/course/view.php?id=3  "Course 1"
http: // localhost/course/view.php?id=3  "Course Demo" opening page


===Activity===
===Activity===
*http: // localhost/mod/lesson/view.php?id=4  "Course2 Lesson 1"
*http: // localhost/mod/lesson/view.php?id=4  "Course New, Lesson 1" opening page


*http: // localhost/mod/lesson/view.php?id=5  "Course2 Lesson 2"
*http: // localhost/mod/lesson/view.php?id=5  "Course New, Lesson 2" opening page


*http: // localhost/mod/resource/view.php?id=77 "Course 2 Resource 1"
*http: // localhost/mod/resource/view.php?id=77 "Course New, Resource 1"


===Lesson page===
===Lesson page===
http: // localhost/mod/lesson/view.php?id=2&pageid=15  Course 1 Lesson 1 page 15
http: // localhost/mod/lesson/view.php?id=2&pageid=15  Course Demo, Lesson 1 page 15


To be continued.
To be continued.

Revision as of 18:17, 23 November 2006

Creative Moodlers have come up with some ways to use HTML linking to navigate within a Moodle site. This page will give some examples.

Formats of common internal links

Essentially the moodle id is a unique number. Moodle calls up the right module in view mode and then points that towards an object that is identified with an id. Here are some examples.

Course

http: // localhost/course/view.php?id=2 "Course New" opening page" http: // localhost/course/view.php?id=3 "Course Demo" opening page

Activity

  • http: // localhost/mod/lesson/view.php?id=4 "Course New, Lesson 1" opening page
  • http: // localhost/mod/lesson/view.php?id=5 "Course New, Lesson 2" opening page
  • http: // localhost/mod/resource/view.php?id=77 "Course New, Resource 1"

Lesson page

http: // localhost/mod/lesson/view.php?id=2&pageid=15 Course Demo, Lesson 1 page 15

To be continued.