![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I want to have an editable region inside the <body> tag so that some pages can use onload commands. How can I do this? Thanks, Misha |
#3
| |||
| |||
|
|
MX (not 2004) Murray *TMM* wrote: Misha: Which DW? |
#4
| |||
| |||
|
|
Misha: Which DW? |
#5
| |||
| |||
|
|
Select the body tag on the TagSelector, and then use MODIFY | Templates Make Attribute Editable. You will now have the opportunity to select any existing attribute in that <body> tag (or add any new ones), and specify a variable name which will be used by DMX for that attribute's value. Try it.... |
#6
| |||
| |||
|
|
I don't understand how it works. What I want to do is have: body content /body But on one page have: body onload... content /body basically i want body <-- begin editable region --><end edtible region -- I'm not sure how to get that with the "make attribute editable" Murray *TMM* wrote: Select the body tag on the TagSelector, and then use MODIFY | Templates Make Attribute Editable. You will now have the opportunity to select any existing attribute in that <body> tag (or add any new ones), and specify a variable name which will be used by DMX for that attribute's value. Try it.... |
#7
| |||
| |||
|
|
Misha: You do it just the way I explained. Check the F1 Help on Editable attributes, too. By the way, you are *not* inserting an editable region in the body tag when you do this.... |
#8
| |||
| |||
|
|
When I select modify --> templates --> make attribute editable for body> tag, I get a window that says: "Choose which attributes of this BODY tag should be editable." I don't have any attributes in the body tag. I want to insert an attribute only for certain pages. So, just to see what happens I "add an attribute," call it "onload" and label it "onloadcontent." This creates the lines: !-- TemplateParam name="onloadcontent" type="text" value="" -- body onload="@@(onloadcontent)@@" in my template. It creates the lines: !-- InstanceParam name="onloadcontent" type="text" value="" -- body onload="" in my template. This is a problem. I don't want the onload="" in pages which do not use an onload. Murray *TMM* wrote: Misha: You do it just the way I explained. Check the F1 Help on Editable attributes, too. By the way, you are *not* inserting an editable region in the body tag when you do this.... |
#9
| |||
| |||
|
|
Misha: It doesn't matter that this is there. What you have described is the correct way to do it. |
#10
| |||
| |||
|
|
So having <body onload=""> is fine? |
|
So having <body onload=""> is fine? Then on the page where I want the onload to occur I enter: !-- InstanceParam name="onloadcontent" type="text" value="MM_openBrWindow('etc....')" -- ? Unfortunately, the body tag on that page still says: body onload="" and the pop-up window doesn't pop-up. What am I missing? Murray *TMM* wrote: Misha: It doesn't matter that this is there. What you have described is the correct way to do it. |
![]() |
| Thread Tools | |
| Display Modes | |
| |