DMXT - Bulletin 1

Charles Cornell has sent me some test files to figure out a problem and we
have done so. Thank you Charles!

The issue:

When editing Dreamweaver 4 templates with Dreamweaver MX.. making a change to the template, saving it and updating the pages caused javascript to be placed in the first editable region of the page.

The Resolution:

Add a new Dreamweaver MX editable region in the head block of the template and name it head. Save the template, update the child pages.

The Frequency:

This WILL occur if your editable region contains a library item(s) that reference and/or require Macromedia Javascript components (behaviors) such as swap image, swap image restore, etc. *** There may be other circumstances where the same occurs.

The reason:

When Dreamweaver 6.1 tries to update the pages, it is ignoring the required scripts in the locked head region and is trying to add the required scripts to the page, since there is no existing editable region in the head block, the first body located editable region is used to enter the scripts. Addition of the editable region lets Dreamweaver MX process the child pages properly and recognize the locked head scripts without adding them further to the page.

Additional Information:

Dreamweaver MX WILL NOT use the editable region named doctitle for placement of code.. hence, this is a bug I believe. Name of the new editable region does not seem to matter although 'head' is the standard for Dreamweaver MX, what does matter is that there is a second defined editable region in the head block of the template.

Lesson learned:

If you intend on using Dreamweaver MX to edit Dreamweaver 4 templates then you should update the template markup as per the tutorial located here: http://dreamweavermx-templates.com/tutorials/tutupdate.cfm. Performing the markup update adds the new editable region in there for you if you follow the directions and reduces your chances of issues with templates and Dreamweaver MX.

NOTE: This warning bulletin will be added to our support site asap.

Macromedia.. please technote this issue. Sample code available upon request
by Macromedia (Code will not be given to others)

CC: wish-dreamweaver@macromedia.com