Add Category to Title Tag for SEO
7 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: January 5, 2011 (RSS)
By Roj - January 2, 2011 - edited: January 2, 2011
http://www.domain.co.uk/listpage.php?category=title
Can you tell me a easy way to do this?
Re: [Roj] Add Category to Title Tag for SEO
By Jason - January 3, 2011
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
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
Re: [Roj] Add Category to Title Tag for SEO
By Jason - January 4, 2011
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
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
Re: [Roj] Add Category to Title Tag for SEO
By Jason - January 5, 2011
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
I knew there would be a simple answer.
This worked fine when used the correct spelling for category :)
Roj