Enter a query to search our site. Note that you can use "*" and "?" as wildcards. Enclosing more than one word in double quotes ("CSS Layout") will search for the exact phrase.

Project Seven dot com

PVII Knowledge Base

1. Select a product ...
2. Select category ...
3. Search the Knowledge Base...

Question #150

Im using the MenuMagic1 system on a template with the Sub Menu Controller. When I add the MM1 Template Opener command the menu stops working. What's wrong?

The Answer

Prepared Jun. 2004 by Gerry Jacobsen, PVII

When using the MenuMagic1 (MM1) dwt Template Opener some of the child pages DW displays this error message: ""Making this change would require changing code that is locked by a template or translator. The change will be discarded". Is there a fix?

When using both the dwtOpener and the sub-menu controller on the same page the MM1 dwt Menu Opener command MUST be applied first, then add the sub-menu controller. If you try to apply the MM1 dwt Menu Opener with the MM1 SubMenu Controller behavior already on the page Dreamweaver will "remove" one of the menu scripts inadvertently and cause the menu to stop working.

First, be sure to install the MM1 Template Opener Patch1 that will resolve this and most other template opener issues. Next, follow the procedures below to repair the issue on your current page(s).

The correct procedure for applying both the dwtOpener and the Sub Menu Controller is:

1. Apply the MM1 dwt Menu Opener to the page first.

2. Apply the MM1 SubMenu Controller last, be sure that is is the last behavior on the <body> onLoad event, it must be listed after the MM1 dwt Menu Opener behavior.

How to fix a template page that already contains the error:

1. Open the template page, the .dwt file.

2. Restore the missing script:

  • Click one of the menu buttons
  • Double-click the Trigger menuMagic1 behavior in the Behaviors panel
  • Simply click OK in the interface. This will re-apply the proper scripts.

2. Correct the order of the onLoad behaviors:

  • Select the <body> tag
  • Open the Behaviors panel.
  • Select the MenuMagic1 SubMenu Controller and use the down arrow to move it down in the listing so that it is the last item, after the P7_MM1dwt() behavior.

3. Save the template file, allow Dreamweaver to update any template-based pages.

That's it, the template and template-based page(s) will operate as expected, with both the dwtOpener and the SubMenu Controller functional.

Back to the questions list