forked from silverstripe/silverstripe-subsites
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API: Subsite support for menu of cms (hide admins that don't declare …
…support) (fixes silverstripe#101 and silverstripe#89 ) * 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
- Loading branch information
Naomi Guyer
committed
Aug 22, 2013
1 parent
2d41dc6
commit 07d1a17
Showing
10 changed files
with
233 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?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; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div class="cms-subsites" data-pjax-fragment="SubsiteList"> | ||
<div class="field dropdown"> | ||
<select id="SubsitesSelect"> | ||
<% loop $ListSubsites %> | ||
<option value="$ID" $CurrentState>$Title</option> | ||
<% end_loop %> | ||
</select> | ||
</div> | ||
</div> |
Oops, something went wrong.