templates
Request a callback

We'll call during UK business hours

Name:
Number:
0207 987 3777

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

Templates

resolvedResolved · Medium Priority · Version 8

Tue 1 Apr 2008, 16:31 replyReply Delegate Gavin said...

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??

For upcoming training course dates see: Pricing & availability

Mon 7 Apr 2008, 09:07 replyReply Trainer Rich said...

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

Mon 7 Apr 2008, 12:07 replyReply Delegate Gavin said...

RE: Templates

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

kind regards
gavin

 

Please browse our web site to find out more about
dreamweaver-london and other Microsoft training courses.

Dreamweaver tip:

Creating line breaks

If you want to create a line break hold down Shift+Enter.

View all Dreamweaver hints and tips



MS Project training
Course rating:
4.8 stars - based on 5149 reviews
Microsoft Certified Partner Institute of Leadership and Management - Certified Courses Learning and Performance Institute - Accredited Training Provider Security Seal verified by visa, mastercard securecard

Connect with us: Facebook · Twitter · Google+ · LinkedIn · Pinterest