Feb 17

ColdFusion 8 - Custommenu.xml

Posted by James Netherton | Sunday 17 February 2008 12:56 PM | In ColdFusion

In previous versions of ColdFusion you were able to add custom menu items to the ColdFusion administrator by creating a template named extensionscustom.cfm and placing this within the cfadministrator directory.

Peek within the cfadministrator directory under CFIDE within ColdFusion 8 and you should see a file named custommenu.xml. By adding entries into this file you can replicate the behaviour offered by extensionscustom.cfm.

The XML file has the following structure:

<?xml version="1.0" encoding="iso-8859-1"?>
<menu>
   <submenu label="My Custom Menu">
      <menuitem href="href" target="content">Custom Resource</menuitem>
   </submenu>
</menu>

You can have as many submenu or menuitem elements as you wish. Once you have made your changes, head over to the ColdFusion administrator and you should see your custom menu items appended to the end of the main navigation menu.

 

1 Comment

[Post comment]


1

Posted by Martin Parry | Wednesday 28 May 2008 1:35 PM

Interesting.. I've never know you could add onto the admin tool. Not quite sure what I'll put in it though ;-)

Leave a comment








Captcha text