Welcome to WebmasterWorld Guest from 54.242.63.214

Forum Moderators: open

Message Too Old, No Replies

Dreamweaver Template and Meta tags

Forgot to make an editable region for meta tag

     

BlueGhost

4:23 pm on Dec 20, 2005 (gmt 0)

10+ Year Member



Hello all, i redid a site for my company and the site has over 200 pages in it. I just made editable regions for the body only, and when a coworker went into edit the meta tags, since there was no editable region he couldnt access it. I didnt know what to do, it was late in the day and i was done working. Im afraid if i make an editable region now, it wont apply to all the pages i have already created, and i dont want to go back to all 200 pages and edit them individually. Any thoughts on this? THanks!

BlueGhost

2:28 pm on Dec 21, 2005 (gmt 0)

10+ Year Member



found the answer:

Question: I need to add some meta content, keywords to be exact, to my document. When I try to do this in a page created from a template nothing happens. How come?

Answer: Just as with custom scripts, you cannot modify any content in the head region of a page created from a template unless you have created a special editable region there.

Switch to Code view and locate the <head> tags at the top of the document. In particular, look for the title tags contained in the document. They should look something like this:

<head>
<!--#BeginEditable "doctitle" -->
<title>Your Title Here</title>
<!-- #EndEditable -->

Your completed revisions should look something like this when you're done:

<head>
<!--#BeginEditable "doctitle" -->

<title>Untitled Document</title>

<meta name="keywords" content="keyword 1, keyword 2, keyword 3, etc.">

<!-- #EndEditable -->

In addition to this method you could simply insert the meta tags into the defined editable region in the head of your document. While spelling out the location of your meta tags as in the example above may make things clearer, all that is really required is placing your head content into any area defined as editable in the code.

voices

5:38 pm on Jan 9, 2006 (gmt 0)

10+ Year Member



Seems dreamweaver has a little bug with this, if you don't set a title when you create the template page, it won't let you edit it later. Had that problem the other day after I did the site and went back to put the Titles in.

I opened the template in a text editor to make the changes and it still wouldn't work. I finally gave up and just recreated the template.

Good luck!

 

Featured Threads

Hot Threads This Week

Hot Threads This Month