Skip to content

[docs] Supplementary content in the sticky footer#1636

Open
sarjona wants to merge 1 commit into
moodle:mainfrom
sarjona:supplementarycontent
Open

[docs] Supplementary content in the sticky footer#1636
sarjona wants to merge 1 commit into
moodle:mainfrom
sarjona:supplementarycontent

Conversation

@sarjona

@sarjona sarjona commented Jul 15, 2026

Copy link
Copy Markdown
Member

Document the new moodle_page::set_supplementary_content() and get_supplementary_content() methods introduced in MDL-88601, which allow injecting additional content into the sticky footer independently of course format linear navigation support, as used by mod_forum to link back to the discussion list.

Copilot AI review requested due to automatic review settings July 15, 2026 06:12
@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for moodledevdocs ready!

Name Link
🔨 Latest commit 882cea5
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/6a572650bbab230008d7fe71
😎 Deploy Preview https://deploy-preview-1636--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Moodle 5.3 DevDocs to document the new $PAGE supplementary content API for adding an action_link to the sticky footer, decoupled from course format linear navigation support (MDL-88601).

Changes:

  • Adds a Moodle 5.3 developer update entry describing set_supplementary_content() / get_supplementary_content() and a real-world mod_forum use case.
  • Extends the linear navigation guide with a new section explaining how to add supplementary sticky-footer content, including a PHP example and behavioral notes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docs/devupdate.md Adds a new Moodle 5.3 dev update entry describing supplementary sticky-footer content and links to the detailed guide section.
docs/apis/plugintypes/format/linear_navigation.md Documents how to set/retrieve supplementary sticky-footer content and how it interacts with linear navigation rendering.

Comment thread docs/apis/plugintypes/format/linear_navigation.md Outdated
Comment thread docs/apis/plugintypes/format/linear_navigation.md Outdated
Document the new moodle_page::set_supplementary_content() and
get_supplementary_content() methods introduced in MDL-88601, which allow
injecting additional content into the sticky footer independently of course
format linear navigation support, as used by mod_forum to link back to the
discussion list.
@sarjona sarjona force-pushed the supplementarycontent branch from 32fb02c to 882cea5 Compare July 15, 2026 06:18
@laurentdavid

Copy link
Copy Markdown
Collaborator

Thanks @sarjona, all good.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


<Since version="5.3" issueNumber="MDL-88601" />

Independently of whether the current course format supports linear navigation, any part of Moodle can request additional content to be displayed in the sticky footer by calling `moodle_page->set_supplementary_content()` with an `action_link` instance:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's a good idea to replace moodle_page-> with $PAGE (I updated the patch replacing :: with -> but that's all).


When supplementary content is set, the sticky footer is displayed even if the course format does not support linear navigation, or the setting is disabled, showing only the supplementary content. If linear navigation is also enabled, both the navigation controls and the supplementary content are rendered together in the footer, separated by a border.

Use `moodle_page->get_supplementary_content()` to retrieve the current value, which returns `null` if none has been set. The value is automatically reset whenever `moodle_page->reset_theme_and_output()` is called.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's a good idea to replace moodle_page-> with $PAGE (I updated the patch replacing :: with -> but that's all).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants