Add a block cleanup: Difference between revisions
(Marked project as Completed) |
(Review project page to include changes done.) |
||
Line 10: | Line 10: | ||
In the Add a block menu, the list of blocks is really long. This project is about figuring out how to reduce the list. | In the Add a block menu, the list of blocks is really long. This project is about figuring out how to reduce the list. | ||
==Disabling blocks if the feature is disabled== | ==Disabling blocks if the feature is disabled== | ||
Blocks such as the blog menu, blog tags and recent blog entries | Blocks such as the blog menu, blog tags and recent blog entries will be disabled if blogs are disabled in advanced features. | ||
Blocks this applies to: | Blocks this applies to: | ||
Line 19: | Line 19: | ||
* Comments | * Comments | ||
* Course completion status | * Course completion status | ||
* Global search | * Global search | ||
* Latest badges | * Latest badges | ||
* Learning plans | * Learning plans | ||
* Network servers | |||
* Random glossary entry | * Random glossary entry | ||
* Tags | * Tags | ||
==Disabling less useful blocks== | ==Disabling less useful blocks== | ||
Some blocks that we | Some blocks that we have disabled by default are: | ||
* Course summary | * Course summary | ||
* Feedback - as the block only works if a Feedback activity is added to the site home page | * Feedback - as the block only works if a Feedback activity is added to the site home page | ||
Line 34: | Line 33: | ||
For upgraded sites, we | For new installs, the above blocks will disabled by default. | ||
For upgraded sites, we check if there are any instances of the block and if not, disable it. | |||
==Letting themes define "un-addable" blocks== | ==Letting themes define "un-addable" blocks== | ||
The Administration and Navigation blocks are only needed if the Classic theme is used | The Administration and Navigation blocks are only needed if the Classic theme is used. | ||
A new theme setting has been added to let themes mark blocks as "un-addable" (to avoid them being displayed in the "Add a block" list page). This will allow boost to mark the following blocks as un-addable: | |||
* Navigation - as it has been improved in 4.0 | * Navigation - as it has been improved in 4.0 | ||
* Administration - as navigation has been improved in 4.0 | * Administration - as navigation has been improved in 4.0 | ||
Line 47: | Line 47: | ||
As it's a theme setting, admins can still remove them from this "un-addable" blocks list, if, for any reason, they want to get them displayed in the "Add a block" page. |
Revision as of 08:12, 22 March 2022
Add a block cleanup | |
---|---|
Project state | Completed |
Tracker issue | MDL-73299 (epic) |
Discussion | Add a block cleanup for Moodle 4.0 |
Assignee | Sara Arjona |
In the Add a block menu, the list of blocks is really long. This project is about figuring out how to reduce the list.
Disabling blocks if the feature is disabled
Blocks such as the blog menu, blog tags and recent blog entries will be disabled if blogs are disabled in advanced features.
Blocks this applies to:
- Accessibility review
- Blog menu
- Blog tags
- Recent blog entries
- Comments
- Course completion status
- Global search
- Latest badges
- Learning plans
- Network servers
- Random glossary entry
- Tags
Disabling less useful blocks
Some blocks that we have disabled by default are:
- Course summary
- Feedback - as the block only works if a Feedback activity is added to the site home page
- Remote RSS feeds - as RSS feeds are not used as much these days
- Self completion - as the block is only needed if self completion is enabled in the course completion settings. Instead we can mention in the interface that for self completion, the block needs to be enabled by an administrator.
For new installs, the above blocks will disabled by default.
For upgraded sites, we check if there are any instances of the block and if not, disable it.
Letting themes define "un-addable" blocks
The Administration and Navigation blocks are only needed if the Classic theme is used.
A new theme setting has been added to let themes mark blocks as "un-addable" (to avoid them being displayed in the "Add a block" list page). This will allow boost to mark the following blocks as un-addable:
- Navigation - as it has been improved in 4.0
- Administration - as navigation has been improved in 4.0
- Courses - as we have My courses in 4.0
- Section links - as the course index in 4.0 provides access to sections
As it's a theme setting, admins can still remove them from this "un-addable" blocks list, if, for any reason, they want to get them displayed in the "Add a block" page.