templates

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Dreamweaver Training and help » Templates

Templates

resolvedResolved · Medium Priority · Version 8

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

RE: Templates

thats great, thanks for that, it was bugging me to no end.

kind regards
gavin

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Dreamweaver tip:

Css styles

If you are looking for a CSS style for your website / web page and not sure what you want to use, then go to the Csszengarden website, where you can download samples to try.

View all Dreamweaver hints and tips


Server loaded in 0.08 secs.