Version: Moodle 3.5
Theme: Child theme of Boost / Boost (Vanilla)
Can anyone tell me if there is a simpler way of adding a block to a specific activity, within a specific course category?
I've managed to add a block to category**, though I'd like to only show the block within the assignment activity.
The block settings (Display on page types) only gives options that pertain to the category context, and nothing as granular as an activity. Working the other way, and creating the block in an assignment gives me the appropriate settings for showing in the activity, but only within one course.
Using the generated configuration data from the database for each instance, I've found that I can edit parentcontextid and pagetypepattern to achieve the goal. Have I overlooked something in the GUI to easily achieve the above?
id | showinsubcontexts | parentcontextid | pagetypepattern |
1 | 1 (Yes) | 10 (mdl_context:id [category]) | mod-assign-* |
** For reference to others, I couldn't see an 'Add a Block' option at category level. Had to start the processes by clicking on customise this page (dashboard) and then navigate to the category to make it show.