[Solved]Page Title Metadata

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
KJHunt
Forum Members
Forum Members
Posts: 33
Joined: Tue Aug 15, 2006 2:33 pm

[Solved]Page Title Metadata

Post by KJHunt »

CMS Information
1.4.1 "Spring Garden"
Server API (server_api): cgi 
Server Database (server_db_type): MySQL (mysql) 
Server Database Version (server_db_version): 5.0.89 
Server Software (server_software): Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7a FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 
Server Operating System (server_os): Linux 2.6.9-89.0.11.ELsmp On i686

I want to have different Page Title Metadata to what is contained in the Actual Page Content Title (Title), but the CMS default automatically loads the Page Content Title into the Page Title Metadata.  How can I change this to have independent Title Metadata.

Example:

In the Page editor the Title is "Teenager Horse Riding Programmes" and the CMS automatically places this in the Page Title Meta Tag.
I want to enter the Title Meta Tag as "Teenager Horse Riding Programmes at Crossogue Equestrian, Tipperary, Ireland"

If I add this Title in the Page Option under Page Specific Metadata: or Description (title attribute):, I will have 2 Page Title Tags showing in the source code.

I have searched through the forum, but cannot find this specific answer.  I hope someone will help me. Thank you.
Last edited by KJHunt on Tue Mar 15, 2011 8:52 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Page Title Metadata

Post by Dr.CSS »

You are using a non supported version of cmsms, we only go back 2 versions, upgrade ASAP for continued support...

Put a {content block='headertitle'} in the header title where the {title} is and you can put whatever you want in it when editing page, or don't use {title} any where else and put your long page title in it for head title...
Last edited by Anonymous on Tue Mar 16, 2010 11:13 pm, edited 1 time in total.
User avatar
KJHunt
Forum Members
Forum Members
Posts: 33
Joined: Tue Aug 15, 2006 2:33 pm

Re: Page Title Metadata

Post by KJHunt »

Dear Dr CSS
Many thanks for your reply and you have pointed me in the right direction and solved my problem for the metatag.

SOLUTION:
In my template (standard cms) the following line was reading:

{sitename} - {title}
{metadata}

I changed this to:

{sitename} - {description}
{metadata}

This is now perfect to display the Description (title attribute): which I can enter on the Options Tab for each Page.

I do note however that it also places this information on the navigation button for the page as a "Title" tag which would make sense, but is not what I want.  On the navigation button I just want to show the Menu Text:

I can see the code that is doing this is:




So I will have to modify the link rel to use Menu Text instead.

Dr. CSS
If I make these changes to the template does upgrading to the latest version affect thses changes?

Thanks again Dr CSS
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Page Title Metadata

Post by Dr.CSS »

Changing things in your template doesn't get effected by upgrading...
Post Reply

Return to “CMSMS Core”