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: [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/

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

By Roj - January 5, 2011

Thanks Jason,

I knew there would be a simple answer.
This worked fine when used the correct spelling for category :)


Roj
Roj