HighDots Forums  

how do i add additional Ap divs to a HTML page that hastemplates?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss how do i add additional Ap divs to a HTML page that hastemplates? in the Macromedia Dreamweaver forum.



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

Default how do i add additional Ap divs to a HTML page that hastemplates? - 04-01-2009 , 10:24 AM






okay, heres the deal: i want to draw addition Ap Divs to a HTML web page of
mine. My website is template based, and dreamweaver won't let me draw addition
Ap Divs on the web page.

Is there anyway i can do this? there must be some way, or than detaching my
web page from the template, which i dont really want to do!



Reply With Quote
  #2  
Old   
aRT
 
Posts: n/a

Default Re: how do i add additional Ap divs to a HTML page that has templates? - 04-01-2009 , 10:25 AM






Edit the template?

name294 wrote:
Quote:
okay, heres the deal: i want to draw addition Ap Divs to a HTML web page of
mine. My website is template based, and dreamweaver won't let me draw addition
Ap Divs on the web page.

Is there anyway i can do this? there must be some way, or than detaching my
web page from the template, which i dont really want to do!



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

Default Re: how do i add additional Ap divs to a HTML page that has templates? - 04-01-2009 , 10:35 AM



You do realize how troublesome using AP divs can be for those who do not
completely appreciate the ramifications of absolute positioning, right?
They are *not* a general purpose layout tool.

Here's the problem with AP divs in template child pages, and a simple
solution.

When you DRAG an AP div onto the page in DW (this means you click on the
layer icon in the Insert Toolbar and drag the element on the page), DW wants
to put the code for that div immediately under the body tag, e.g.,

BEFORE DRAG -

<body...>
<table>
....

AFTER DRAG -

<body ...>
<div id="foo" style="position:absolute; ...>AP div STUFF</div>
<table>
....

In a template child page, this region is usually not part of your editable
region, and so the div's code is rejected by the template engine. This is a
bad thing.

If instead of dragging the div onto the page, you use INSERT | Layout
Objects > AP Div, that should work provided your cursor is in an editable
region.

THE SOLUTION -

Open your TEMPLATE page in DW, and create a special place where it is SAFE
to put your AP divs. In code view, find this -

</body>

and click so that your cursor insertion point is just to the left of
</body>.

Now, use INSERT | Template Objects > Editable Region, and name this region
"AP Div Pad" or something like that.

When you save your template page, all your child pages will now have the AP
Div Pad editable region on them.

THE BIG FINISH -

On any child page where you need an AP div, just click in this editable
region, and use INSERT | Layout Objects > AP Div. Bada bing, bada boom.


--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"name294" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
okay, heres the deal: i want to draw addition Ap Divs to a HTML web page
of
mine. My website is template based, and dreamweaver won't let me draw
addition
Ap Divs on the web page.

Is there anyway i can do this? there must be some way, or than detaching
my
web page from the template, which i dont really want to do!




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

Default Re: how do i add additional Ap divs to a HTML page thathas templates? - 04-01-2009 , 12:35 PM



ugh, im not very good with dreamweaver so i make mistakes

i was hoping to avoid drawing new Ap Divs on my template dwt

how about this? i draw say like 10 Ap Divs on my template, and slap a editable
region on all of them. then when i go make my HTML page, 10 ap divs is usually
too much for me. so i can delete the ones i don't need!


Reply With Quote
  #5  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: how do i add additional Ap divs to a HTML page that has templates? - 04-01-2009 , 12:40 PM



Quote:
i was hoping to avoid drawing new Ap Divs on my template dwt
That was not my suggestion. Please read the steps again.

Quote:
how about this? i draw say like 10 Ap Divs on my template, and slap a
editable
region on all of them. then when i go make my HTML page, 10 ap divs is
usually
too much for me. so i can delete the ones i don't need!
I fear the worst with your approach. No, I don't think this is a good idea.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"name294" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
ugh, im not very good with dreamweaver so i make mistakes

i was hoping to avoid drawing new Ap Divs on my template dwt

how about this? i draw say like 10 Ap Divs on my template, and slap a
editable
region on all of them. then when i go make my HTML page, 10 ap divs is
usually
too much for me. so i can delete the ones i don't need!



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.