This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > June 2005 > template problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author template problem
CommunicationPA

2005-06-29, 8:02 pm

I am working on a test site, that is built around a simple html template with 1
main editable region. I made some changes to the template (not to the editable
region, but to the nav bars on the top and bottom) and after saving the
template changes, dreamweaver updated all the (dozen or so) pages that use that
template. Well, they did not update correctly. On the pages the nav bar is
centered across the top and the editable region should be centered right under
it- instead the editable region only takes up half that space so all the info
for each page is squished to one side, and the other side is blank.

I can post code if that will help. I have been pretty much self-taught with
dreamweaver and html so I am in no way an expert, but I usually get by fine
with what I know- this time I am totally stumped! I tried deleting the editable
region in the template and then re-creating it. Didn't work. I tried deleting
it, and recreating with a new editable region name, and then telling
dreamweaver where to put the info- didn't work. Any ideas?

Paul Whitham TMM

2005-06-29, 8:03 pm

It sounds like you have a tag in the wrong place which is not rendering
right on the updated pages. Can you post a URL link?

--
Regards

Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
www.valleybiz.net

Team Macromedia Volunteer for Ultradev/Dreamweaver MX
www.macromedia.com/support/forums/team_macromedia

"CommunicationPA" <webforumsuser@macromedia.com> wrote in message
news:d9ufhh$7ab$1@forums.macromedia.com...
> I am working on a test site, that is built around a simple html template

with 1
> main editable region. I made some changes to the template (not to the

editable
> region, but to the nav bars on the top and bottom) and after saving the
> template changes, dreamweaver updated all the (dozen or so) pages that use

that
> template. Well, they did not update correctly. On the pages the nav bar is
> centered across the top and the editable region should be centered right

under
> it- instead the editable region only takes up half that space so all the

info
> for each page is squished to one side, and the other side is blank.
>
> I can post code if that will help. I have been pretty much self-taught

with
> dreamweaver and html so I am in no way an expert, but I usually get by

fine
> with what I know- this time I am totally stumped! I tried deleting the

editable
> region in the template and then re-creating it. Didn't work. I tried

deleting
> it, and recreating with a new editable region name, and then telling
> dreamweaver where to put the info- didn't work. Any ideas?
>



CommunicationPA

2005-06-30, 7:42 pm

Hi Paul,

Thanks for the reply! The link for the test site is
http://www.intl-institute.wisc.edu/testnew/index.htm

I've looked at the code and can't find what is wrong- but like I said, I am
pretty self-taught so I am probably missing something. You can see from the
pages that the entire content of each page is pushed off the template itself-
strange. This happened after I changed the nav bar in the template a little
bit- but the change I made (adding a table within a cell) shouldn't have done
this.

thank! -Wendy

Gary White

2005-06-30, 7:44 pm

CommunicationPA wrote:

> Thanks for the reply! The link for the test site is
>http://www.intl-institute.wisc.edu/testnew/index.htm



Looks like you've been copying and pasting code. You have this:

<td height="596" colspan="3"><!-- InstanceBeginEditable name="main2"
-->
<td colspan="3" align="left" valign="top"> <div align="right">

When the browser encounters the second <td> tag, it implicitly closes
the first <td>, effectively inserting an omitted </td> tag:

<td height="596" colspan="3"><!-- InstanceBeginEditable name="main2"
--></td>
<td colspan="3" align="left" valign="top"> <div align="right">

That winds up scrambling your layout by adding the extra columns
necessary to hold the content.

Then, later, you have this:

</div></td>
<!-- InstanceEndEditable --></td>

Here, the browser can't do much. You have a </td> for the second
opening <td> above. Then you have an extra </td> for the first one
that the browser has already closed.

It's not clear exactly what you want, but I'd suggest changing this in
your template:

<td height="596" colspan="3">

To this:

<td colspan="3" align="left" valign="top">

Then, in your page, change this:

<td colspan="3" align="left" valign="top"> <div align="right">

To this:

<div align="right">

and change this:

</div></td>
<!-- InstanceEndEditable --></td>

To this:

</div>
<!-- InstanceEndEditable --></td>


Gary
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews