Add Category to Title Tag for SEO

By Roj - January 2, 2011 - edited: January 2, 2011

I have completed a website using CMS builder with a drop down menu system that uses categories for the menu items. I am now working on the SEO and would like the title tag to match the category.
http://www.domain.co.uk/listpage.php?category=title
Can you tell me a easy way to do this?
Roj

Re: [Roj] Add Category to Title Tag for SEO

By Jason - January 3, 2011

Hi Roj,

If you edit your section and click on the Viewer Urls tab you can edit the Filename Fields, replacing title with your category field.

Is this what you're looking for?
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Add Category to Title Tag for SEO

By Roj - January 4, 2011

Hi Jason,

Thanks for your reply.
I can add <?php echo $record['name'] ?> into the title tag but when the page opens it needs to the record number.

Perhaps giving you the website might help me explain a bit better. The site is mutley .co .uk

Regards
Roj
Roj

Re: [Roj] Add Category to Title Tag for SEO

By Jason - January 4, 2011

Hi Roj,

Yes, you can use <?php echo $record['name'];?> to output the name into the title tag. If you want to output the record number instead, you can use <?php echo $record['num'];?>

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Add Category to Title Tag for SEO

By Roj - January 5, 2011

Hi Jason,

I think my question should be, how to I pass the record number to the next page?

The drop down menu is created from the category table, when I click on one of the menu items then record number associated with this item needs to be used to open the relevant record number to display the category in the title tag.

Sorry if that's not very clear, I'm not sure how else to explain it.

Can you go to the site I mentioned in the early post.
Go to the "Rentals" option on the menu then click on "clamshells" from the drop down menu. When the new page opens I want the word "clamshells" to appear in the title tag. Likewise if I click on "Breakers" I want that to appear in the title tag.

I hope this is a bit clearer.
Thanks for your time
Regards
Roj
Roj

Re: [Roj] Add Category to Title Tag for SEO

By Jason - January 5, 2011

Hi,

I think I see what you're saying. Since you're passing the name of your category in the url string, you can output that name into the title like this:

<title><?php echo @$_REQUEST['catgegory'];?></title>

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/