mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
37843f447e
* Hide admins without subsite support from subsites menu * Add subsite support to default site areas * Enable reloading of subsites switcher dropdown when navigating the site, and when editing subsite areas API Fix parallel pjax menu fetching for subsites. - thanks Mateusz! Delint LeftAndMain_Subsites.js
20 lines
457 B
PHP
20 lines
457 B
PHP
<?php
|
|
|
|
/*
|
|
* Simple extension to show admins in the menu of subsites.
|
|
* If an admin area should be available to a subsite, you can attach
|
|
* this class to your admin in config. eg:
|
|
*
|
|
* MyAdmin::add_extension('SubsiteMenuExtension');
|
|
*
|
|
* Or you can include the subsiteCMSShowInMenu function in your admin class and have it return true
|
|
*/
|
|
|
|
class SubsiteMenuExtension extends Extension{
|
|
|
|
public function subsiteCMSShowInMenu(){
|
|
return true;
|
|
}
|
|
|
|
}
|