Actions

Customising/Themes/Mahara 1.3 Themes: Difference between revisions

From Mahara Wiki

< Customising‎ | Themes
(Created page with "'''Limiting Themes to Institution'''s Mahara 1.3 supports the ability to limit a theme to a set of institutions so that only the institutions specified in the theme's configurat…")
 
mNo edit summary
 
Line 8: Line 8:


All themes will still be accessible to be set as a Site-wide theme, even if the $theme-&gt;institutions array is set.
All themes will still be accessible to be set as a Site-wide theme, even if the $theme-&gt;institutions array is set.
[[Category:Customising]]

Latest revision as of 18:08, 19 Haziran 2019

Limiting Themes to Institutions

Mahara 1.3 supports the ability to limit a theme to a set of institutions so that only the institutions specified in the theme's configuration file will be able to view or set that theme.

To limit a theme to a single institution, you can add an array containing the names of each institution which should have access to the theme to the themeconfig.php - for example:

$theme->institutions = array('institution_a', 'institution_b');

All themes will still be accessible to be set as a Site-wide theme, even if the $theme->institutions array is set.