A question came up recently on the RootsWeb Expression Web Mailing List:
“I am using a Dynamic Drive Lightbox image viewer script on only a couple pages of my site. The script must be placed within the HEAD section. Is there any reason not to put this in the DWT? Or should it just be put on the pages involved? Which could lead to problems if you make changes to the DWT later and forget that you have added to the HEAD section of those pages. Or should I have a separate DWT for those pages”
A simple solution is to add a scripting area as an editable region on your Dynamic Web Template (DWT).
Insert this code in the head section of your DWT:
<!– #BeginEditable “scripting” –>
<!–
Scripting area here –>
<!– #EndEditable –>
When you need to add a script to your page or pages, insert it in place of <!– Scripting area here –> Simple solution.
Because it is located in an editable region, the script on
the page will not be changed when you update your DWT.
Expression Web 4.0 Tutorials 2nd Edition from Install to Publish, a FREE EBook by Pat Geary.
Expression Web has a group on Facebook. If you are a FB user, come join us.
Disclosure: This is an affiliate link, which means that if you visit Bluehost.com through this link and purchase this product, I’ll get a commission.
April 2007 - April 2013
Privacy Policy | Migrating from FrontPage to Expression Web
Microsoft® and Expression Web® are registered trademarks of Microsoft® Corporation.
Site Design & Maintenance : Expression Web Tutorials & Templates