editable areas in DW template
I am trying to make a page into a template in Dreamweaver.
I have a table with 1 row and 4 cells.
The first cell contains a which holds a css text navigation menu and this cell should not be editable.
I want the remaining 3 cells to be editable but in a way that I can implement colspan when I need to in the future.
I cannot see how I could select these 3 cells in a way that would give me that flexibility because selecting beyond the final tag (ie selecting the tag) will select the whole table and make Cell 1 editable too.
Here is the code I am working with.
Xtreme
Jack Michaelson posted this at 11:09 — 22nd July 2006.
He has: 1,733 posts
Joined: Dec 1999
Get the div out of the table and put in in another or use other ways (like CSS) to position it.
Megan posted this at 20:56 — 22nd July 2006.
She has: 11,421 posts
Joined: Jun 1999
I think you can move around the editble regions once you've got them positioned. I'll go try that out. I have done that before, or just created the editable regions by hand.
It is a little odd to have a div with CSS navigation inside a table Like trying to put a CD into an 8 track player
Megan
Connect with us on Facebook!
Megan posted this at 21:02 — 22nd July 2006.
She has: 11,421 posts
Joined: Jun 1999
Okay, it didn't want to let me make three cells a template object automatically but it didn't have a problem with this:
<table width="730" border="0" align="center" cellspacing="0" cellpadding="0" bgcolor="FFFFFF">
<tr>
<td width="150" valign="top">
<div id="button">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
</ul>
</div>
</td>
<!-- TemplateBeginEditable name="EditRegion1" -->
<td width="193" class="tdfirst"> </td>
<td width="193"class="tdsecond"> </td>
<td width="195" class="tdthird"> </td>
<!-- TemplateEndEditable -->
</tr>
</table>
I tested it out and it seems to work okay, could even merge cells.
You were missing a " on the home link BTW.
Megan
Connect with us on Facebook!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.