Click to See Complete Forum and Search --> : Dreamweaver template


tagriffith
11-06-2006, 08:25 AM
I am creating a website where I am using templates. I will have several people changing content on this website. That is why I decided to use a template.

here is an example code for template:


<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>

<body id="page-Home">
<!-- TemplateBeginEditable name="Main" -->
<table width="600" border="0" cellspacing="0" cellpadding="5">
<tr>
<td height="247">&nbsp;</td>
</tr>
</table>
<!-- TemplateEndEditable -->
</body>

The question I have is, how do I setup the template code so that I can change the attributes to the <body>?

Each page would have it's own id:

<body id="page-Home">
<body id="page-Welcome">
<body id="page-Contact">

That is all I want them to be able to chane except for the text in the editable table.

Thanks for the help

tagriffith
11-06-2006, 09:10 AM
I figured it out. I read a little deeper in the help menu of dreamweaver.

for anyone that reads this post and wants to know:

You just need to make the attribute editable, not the tag.

Select the <body> tag, then MODIFY > TEMPLATES > MAKE ATTRIBUTE EDITABLE....

You can then set your options, you can look at help on how to set it all up.

When you build a page from the template you can then do MODIFY > TEMPLATE PROPERITES and edit it for each page.