Click to See Complete Forum and Search --> : Forcing page titles in templates


Gingerguy
01-11-2005, 10:08 AM
Does anyone have an easy way of forcing all the page title to be the same when using a template?

I know it sounds like a daft question, but I am confused.

I have created a template and obviously created all my other pages round that template - as you do.

Within the header tags of the template, i have also stipulated what the page title would be - again, as normal.

Now, what happens is strange. Some of the pages have adopted the same page title as the template suggests, however not all of them do.

My questions is, how can one page be showing the right title, but another, based on the same template, be showing 'Untitled Document'????

Any clues - this is realy bugging me know!
Here is the website address, in case anyone wants to have a look at the code - www.fragrancesatyourfingertips.com

soccer362001
01-11-2005, 10:13 AM
Make sure your title tag is the same.
<title>Title up top</title>

Gingerguy
01-11-2005, 10:23 AM
I have checked this - thay are all the same. The pages pull there code from the template anyway so there will be no variance in the code (supposedly).

Any more ideas?

soccer362001
01-11-2005, 10:48 AM
<title>Untitled Document</title> change that to whatever you want it to be. I only see it on contact us and themachines.

Gingerguy
01-11-2005, 11:01 AM
the .html code of those pages all have the same page title in them. Forexample, below is the beginging header code from themachines

<head>
<!-- InstanceBeginEditable name="Fragrances at your fingertips..." -->
<title>Fragrances at your fingertips...</title>

My problem is, even though the code is right, it still appears as 'untitled document' on some of the pages.

And even more confusing is that when you click on The Opportunity page for the first time the page title is there. But go to another page and click back to it, and it disappears!

You see why this is riving me crazy! It just doesn't make sense!!

soccer362001
01-11-2005, 11:22 AM
The code is not the same.
What you want:
<!-- TemplateBeginEditable name="doctitle" -->
<title>Fragrances at your finger tips...</title>
<!-- TemplateEndEditable -->
The problem:
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->

KDLA
01-11-2005, 11:28 AM
Is your template is Dreamweaver-based? If you're applying the template to another page created in Dreamweaver, it keeps the same metadata, then adds that of the template on top of that. So, you end up with two titles. The browser chooses whichever is first.
You might check your "problem files" to see if this is a possibility.

soccer362001
01-11-2005, 11:48 AM
I already checked, and there is only one title tag.

KDLA
01-11-2005, 11:59 AM
A couple more options:
Try recreating the file, rather than using your existing one. I've had several problems with Dreamweaver "corrupting" files (especially forms) past fixing.

You might try cleaning out all of your browser cache files, history, etc. You might also try (if possible) rebooting your web server.
Then, try viewing the files.

Gingerguy
01-11-2005, 03:49 PM
All,

I have found the problem thanks to all your helpfullness!

It was to do with some missing/incorrect code which I replaced, thanks to the help of soccer362001 0r Yoda as i prefer to call him.

Also, the reason some pages were copying the template and others weren't was due to the fact that I had just uploaded the site off my development server and onto its own server. In doing this, I neglected to amemend some of the links that were still pointing to my dev server. Doh!

Thanks all anyway - its good to see these forums working. I don't know what I'd do without them!!

Cheers ears!

Gingerguy!