Last active
December 4, 2020 16:27
-
-
Save khoatran/62bb7b1356bf2806df6571750e96b353 to your computer and use it in GitHub Desktop.
Customize OctoberCMS sidebar navigation for your plugin
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
<?php namespace Author\PluginName; | |
use System\Classes\PluginBase; | |
use Backend\Facades\BackendMenu; | |
class Plugin extends PluginBase | |
{ | |
public function register() { | |
BackendMenu::registerContextSidenavPartial('Author.PluginName', | |
'sidebar-menu', | |
'$/author/plugin-name/partials/_sidebar.htm'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment