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

templates

ResolvedVersion 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:

JumpMenu in new window

When inserting a jumpmenu to a page, the only option available for 'open in' is usually 'main window'. There would be other options available if the page was a frameset.

To change the jumpmenu to open in a new window, change the target parameter of the selectbox in your code to 'window.open()'.

eg.

<select name="menu1" onChange="MM_jumpMenu('window.open()',this,0)">


source:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16166& ;sliceId=1

View all Dreamweaver hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.