Allow the site templates to have access to the same blocks as the page it will create

Bug #1645840 reported by Robert Lyon
8
This bug affects 1 person
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->get('template') === View::SITE_TEMPLATE;

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

Robert Lyon (robertl-9)
Changed in mahara:
status: New → Confirmed
Changed in mahara:
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.