Gavin has attended:
Dreamweaver 8 Introduction course
Dreamweaver 8 Intermediate course
Templates
I want to be able to change the keywords/metas and page titles on my site, but as all pages are part of the template i can't.....is there a way to do this??
RE: Templates
Hi Gavin.
Yep, there is. You basically have an Editable Region amongst your HEAD tags.
eg.
<html>
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>The Page Title</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<meta name="description" content="insert description here">
<meta name="keywords" content="insert keywords here">
<!-- InstanceEndEditable -->
</head>
<body>
...
In your template, go to code view, click where you want to insert your editable region (within HEAD tags) and go to Insert -> Template Objects -> Insert Editable Region (or similar menu command, depends on your dreamweaver version).
You should then move the META tags (description and keywords) into the editable region, save your template, and update all your pages.
The above code example also shows an editable region for your document title. You could also have the TITLE tag within just the one editable region, but I prefer to use two. Dreamweaver sets this up by default when you make a new template from scratch.
Remember to always backup your local directory before doing changes like this, just in case something goes wrong.
Hope this helps.
Regards, Rich