HighDots Forums  

template object nside the <body> tag?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss template object nside the <body> tag? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Aloosenation
 
Posts: n/a

Default template object nside the <body> tag? - 11-23-2003 , 06:55 AM






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


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: template object nside the <body> tag? - 11-23-2003 , 07:20 AM






Misha:

Which DW?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Aloosenation" <noreply (AT) news (DOT) com> wrote

Quote:
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




Reply With Quote
  #3  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: template object nside the <body> tag? - 11-23-2003 , 07:52 AM



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....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Aloosenation" <noreply (AT) news (DOT) com> wrote

Quote:
MX (not 2004)

Murray *TMM* wrote:

Misha:

Which DW?





Reply With Quote
  #4  
Old   
Aloosenation
 
Posts: n/a

Default Re: template object nside the <body> tag? - 11-23-2003 , 07:53 AM



MX (not 2004)

Murray *TMM* wrote:

Quote:
Misha:

Which DW?



Reply With Quote
  #5  
Old   
Aloosenation
 
Posts: n/a

Default Re: template object nside the <body> tag? - 11-23-2003 , 08:37 AM



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:

Quote:
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....



Reply With Quote
  #6  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: template object nside the <body> tag? - 11-23-2003 , 11:21 AM



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....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Aloosenation" <noreply (AT) news (DOT) com> wrote

Quote:
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....





Reply With Quote
  #7  
Old   
Aloosenation
 
Posts: n/a

Default Re: template object nside the <body> tag? - 11-23-2003 , 01:17 PM



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:

Quote:
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....



Reply With Quote
  #8  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: template object nside the <body> tag? - 11-23-2003 , 02:18 PM



Misha:

It doesn't matter that this is there. What you have described is the
correct way to do it.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Aloosenation" <noreply (AT) news (DOT) com> wrote

Quote:
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....





Reply With Quote
  #9  
Old   
Aloosenation
 
Posts: n/a

Default Re: template object nside the <body> tag? - 11-23-2003 , 05:31 PM



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:

Quote:
Misha:

It doesn't matter that this is there. What you have described is the
correct way to do it.



Reply With Quote
  #10  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: template object nside the <body> tag? - 11-23-2003 , 08:23 PM



Misha:

Quote:
So having <body onload=""> is fine?
It's OK. It would be better if there were a dummy js function that it
called by default, but it's OK.

On the child page where you want something to happen, you use MODIFY |
Template Properties, select the Parameter and make that change. Then when
you click OK, It'll be there.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Aloosenation" <noreply (AT) news (DOT) com> wrote

Quote:
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.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.