Skip to main content
SCE Documentation

Adding Menu Items

As you build sites you will often add administrative content which you would like to link to in the Admin drop down link. However, because SCE handles all of your site's headers automatically, you probably wonder where you can add that.

Adding menu items is a unique but simple process. Because each plugin may need to add one or more menu items the Byu.Fhss.Sce.PluginManager class (in the Byu.Fhss.Util plugin) dynamically handles building the menu based on which plugins are installed. This makes it so that none of the plugins need to modify common files or resources on installation or uninstallation and ensures a common format as well.

This is done by implementing the IPluginRegistration interface and its dependency the IPluginConfig interface on public classes. If you do this, your menu items will automagically appear in the menu! It may be slightly confusing at first, but you will quickly get the hang of it.

But what if you aren't making a plugin? What if the functionality is just in your website solution? No problem. You can implement those interfaces and your classes will register just the same!