Allow the site templates to have access to the same blocks as the page it will create
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Once some of the default blocks are deleted from a template in Administration -> Configure site -> Pages, it is not possible to add them back in. for example 'Personal info' blocks to the Dashboard template.
This is due to the site template not being treated the same as the page type it will create.
To allow the block options to appear on the template edit screen we need to either adjust the relevant blocks by adjusting their
public static function allowed_in_view()
function so that it also returns true for the site template page, eg for 'Personal info' block change
return $view->get('owner') != null;
to
return $view->get('owner') != null || (int)$view-
But it would be better if we created a step or function that allows the site template to mimic the rules for the type of page it is a template for
Changed in mahara: | |
status: | New → Confirmed |
Changed in mahara: | |
importance: | Undecided → Wishlist |