green field

Adding Custom Items to the Administration Menu

In some cases you may implement custom features or pages that you would like to link to from the Administration Menu. mojoPortal provides 2 places where you can specify additional links to show on the Administration Menu.

The first is by putting config files for the links in the Setup/initialcontent/supplementaladminmenulinks folder which will add the links to all sites.

The second is at Data/Sites/[SiteID]/supplementaladminmenulinks folder which will add the links only to the specific site.

The config files can have any name but must end with .config

An example is as follows:

<?xml version="1.0" encoding="utf-8" ?>
<adminMenuLinks>
<adminMenuLink
resourceFile="MyResource"
resourceKey="test google link"
url="http://www.google.com"
visibleToRoles="Admins;Content Administrators"
/>
<adminMenuLink
resourceFile="MyResource"
resourceKey="test extra link2"
url="~/Admin/SiteSettings.aspx"
visibleToRoles="Admins;Content Administrators"
/>
</adminMenuLinks>

You can make it get the text for the link from a resource file. If not found it will show whatever text you put for the key.

You can specify fully qualified urls or you can use ~/ to reperesent the root for intenral pages.

You can also specify what roles can see this link. Of course access to the Admin menu is limited to certain roles already so this is just further filtering that you can do.

mojoPortal Wins the 2007 Open Source CMS Awards Best Non-PHP Open Source CMS Donate Money to support the mojoPortal Project. Join the mojoPortal Group on Facebook Join the mojoPortal Group on LinkedIn View Joe Audette's profile on LinkedIn View Joe Audette's profile on The Guild of Accessible Web Designers site mojoPortal can run on GNU/Linux using Mono