You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 4
Next »
This refers to Moodle 3.8 from September 2020 onwardHow to create a link to a section, resource or activity elsewhere in your module.
Moodle Help & Support
How to: Create internal navigation links in your module
As well as creating urls to external websites you can create internal links to resources or aspects of a page as well. Internal links are useful for navigation around content heavy sections.
Note: If you have collapsed topics you can only use internal links within a section, not to navigate from one section to another.
Creating the anchor
The 'anchor' is thing you want to create a navigation link to, like a bookmark.
- Go to your module in Moodle
- Within a Label or the description section of an activity, resource or a section, expand the formatting toolbar using the 'Show more buttons' button
- Click on the HTML button
- Find the piece of text you want to anchor, usually the title
- Before the title paste in the following HTML code: <span id="anchor_TITLE OF THE ANCHOR">
- Directly after the title paste in the following HTML code: </span>
- Click on the HTML button again to check that visually nothing has changed
- Click Save changes
Creating the link
This will produce a hyperlink that you can click on and it will take you to the connected anchor.
Go to your module in Moodle
Within a Label or the description section of an activity, resource or a section, expand the formatting toolbar using the 'Show more buttons' button
Click on the HTML button
Find the piece of text you want to make a hyperlink to the anchor, this might be in a contents list
- Before the text paste in the following HTML code: <a href="#anchor_TITLE OF ANCHOR">
- Directly after the title paste in the following HTML code: </a>
- Click on the HTML button again to check that a hyperlink has been created but that visually nothing else has changed
- Click Save changes
Note: The hyperlink isn't active in the editing mode, you can test it once you've clicked Save changes.
Similar tutorials
The following other resources are also relevant to this topic: