![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi! i need to add some javascript between the head tags of 10 pages of my site (this is for click-thru tracking). this should be simple enough, but i use a template for all my pages. i don't want the javascript on all my pages, otherwise i would insert it in the template and i don't want to unattach the few pages from the template either (i don't want to have to manually update 11 pages every time there is a change in navigation). i know i once was able to insert an "editable" tag into the template head, which would leave an editable area in all my pages, but i can't find the tag information and am not sure if it is still possible with the new version of dreamweaver. is there a workaround for this? i'm using dreamweaver mx 2004 v7.0.1 windows xp professional thanks http://www.custombrokerage.com |
#3
| |||
| |||
|
|
If the template was created in DMX or DMX2004, then there is an editable region already in the head for you to use for just exactly this purpose on any given child page. DW will be smart enough to add behavior javascript to this region when applying a behavior to a child page. It the template was created in DW4, or was not properly created in DMX or DMX2004, then this region may not be there, in which case you can add it manually. Just open the Template page and enter the following code, save the template and allow all child pages to update.... !-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -- -- Murray --- ICQ 71997575 Team Macromedia Volunteer for Dreamweaver (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.dreamweavermx-templates.com - Template Triage! http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes ================== "laura" <lbarba (AT) futuresworld (DOT) com> wrote in message news:cdjsub$qvo$1 (AT) forums (DOT) macromedia.com... hi! i need to add some javascript between the head tags of 10 pages of my site (this is for click-thru tracking). this should be simple enough, but i use a template for all my pages. i don't want the javascript on all my pages, otherwise i would insert it in the template and i don't want to unattach the few pages from the template either (i don't want to have to manually update 11 pages every time there is a change in navigation). i know i once was able to insert an "editable" tag into the template head, which would leave an editable area in all my pages, but i can't find the tag information and am not sure if it is still possible with the new version of dreamweaver. is there a workaround for this? i'm using dreamweaver mx 2004 v7.0.1 windows xp professional thanks http://www.custombrokerage.com |
#4
| |||
| |||
|
|
Thanks Murray!! I originally created my template page in DW4 and migrated it to DWMX2004 so that is probably why the tag isn't there... yay! ::runs off to edit the template:: Laura "Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message news:cdjtor$s1t$1 (AT) forums (DOT) macromedia.com... If the template was created in DMX or DMX2004, then there is an editable region already in the head for you to use for just exactly this purpose on any given child page. DW will be smart enough to add behavior javascript to this region when applying a behavior to a child page. It the template was created in DW4, or was not properly created in DMX or DMX2004, then this region may not be there, in which case you can add it manually. Just open the Template page and enter the following code, save the template and allow all child pages to update.... !-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -- -- Murray --- ICQ 71997575 Team Macromedia Volunteer for Dreamweaver (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.dreamweavermx-templates.com - Template Triage! http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes ================== "laura" <lbarba (AT) futuresworld (DOT) com> wrote in message news:cdjsub$qvo$1 (AT) forums (DOT) macromedia.com... hi! i need to add some javascript between the head tags of 10 pages of my site (this is for click-thru tracking). this should be simple enough, but i use a template for all my pages. i don't want the javascript on all my pages, otherwise i would insert it in the template and i don't want to unattach the few pages from the template either (i don't want to have to manually update 11 pages every time there is a change in navigation). i know i once was able to insert an "editable" tag into the template head, which would leave an editable area in all my pages, but i can't find the tag information and am not sure if it is still possible with the new version of dreamweaver. is there a workaround for this? i'm using dreamweaver mx 2004 v7.0.1 windows xp professional thanks http://www.custombrokerage.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |