Skip to content

Support block on activity pages#63

Merged
dlmsr merged 1 commit intomainfrom
activity-pages
Mar 10, 2026
Merged

Support block on activity pages#63
dlmsr merged 1 commit intomainfrom
activity-pages

Conversation

@dlmsr
Copy link
Copy Markdown
Member

@dlmsr dlmsr commented Mar 10, 2026

🔀 Purpose of this PR:

  • Fixes a bug
  • Updates for a new Moodle version
  • Adds a new feature of functionality
  • Improves or enhances existing features
  • Refactoring: restructures code for better performance or maintainability
  • Testing: add missing or improve existing tests
  • Miscellaneous: code cleaning (without functional changes), documentation, configuration, ...

📝 Description:

This implements #62: The block can now be placed on activity pages and generates a QR code which links to these pages.

@dlmsr dlmsr requested a review from bluetom March 10, 2026 09:36
@dlmsr dlmsr self-assigned this Mar 10, 2026
@dlmsr dlmsr added this to the Release 5.1.0 milestone Mar 10, 2026
@dlmsr
Copy link
Copy Markdown
Member Author

dlmsr commented Mar 10, 2026

There were two problems with the previous version:

  1. The QR code still had the course link instead of the link to the activity page on activity pages.
  2. The filename of the image was only dependent on the course id. Therefore, when adding the block to the course page and the activity page, the two blocks showed the same QR code.

When the block is added to activity pages, the QR code contains a link
to the activity page instead of the course page.

Fixes: #62
@dlmsr dlmsr merged commit 63f15b2 into main Mar 10, 2026
1 check passed
@dlmsr dlmsr deleted the activity-pages branch March 10, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants