Skip to content

Add setting to disable teamcards tag - #368

Open
tonijoki wants to merge 2 commits into
michael-milette:masterfrom
tonijoki:issue-362-enable-teamcards-setting
Open

Add setting to disable teamcards tag#368
tonijoki wants to merge 2 commits into
michael-milette:masterfrom
tonijoki:issue-362-enable-teamcards-setting

Conversation

@tonijoki

@tonijoki tonijoki commented May 26, 2026

Copy link
Copy Markdown

Summary

Adds an admin setting to enable or disable the {teamcards} tag independently from the rest of FilterCodes.

The setting defaults to enabled to preserve existing behaviour. When disabled, {teamcards} renders as an empty string and the user lookup/card generation is skipped.

Fixes #362

Why

Some sites use FilterCodes generally but do not want {teamcards} to expose a site-wide staff/contact directory based on the Course contacts roles.

Testing

Tested manually in Moodle 4.5.x on two development environments:

  • enabled: {teamcards} renders course contact users
  • disabled: {teamcards} renders nothing
  • confirmed the tag setting can be toggled from the Filter Codes settings page

@tonijoki tonijoki changed the title Add setting to disable teamcards tAdd setting to disable teamcards tagag Add setting to disable teamcards tag May 26, 2026
@michael-milette
michael-milette force-pushed the master branch 2 times, most recently from ba954c0 to f5a2ad5 Compare June 8, 2026 14:19
@michael-milette
michael-milette force-pushed the master branch 5 times, most recently from 08de780 to df18cc2 Compare July 13, 2026 17:57
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.

Feature Request: Add an admin setting to disable the {teamcards} tag

2 participants