PDA

View Full Version : How to to optimize page title in 1.6 version


barasan
08-09-2007, 04:50 PM
I'm using free 1.6 Esyndicat version and I want to optimize page title for my site (I am speaking about <title> tag).

You've discusses similar question here:
http://www.esyndicat.com/forum/showthread.php?t=8014&highlight=page+title

But I have another solution... but don't how to do it.

Right now title tag starting from category name. It works good and looking well optimized for SE when we talk about root page and main categories, but inner categories are not looking well.. Here is an example:
Main page title: Forex Links Directory
Top Category title: Forex Brokers
"Forex Brokers" SubCategory Title: Online Broker (no main keyword before)

All I need is to find a way how to change inner categories page title by adding main site keyword before it. For example I would like to to change this page (http://www.forexforpeople.com/forex-education/forex-ebooks/) to following: Forex Ebooks :: Sites you need...

Sure I can do this from admin panel but than my main page will become "forex"-keyword-spammy because category titles are showing on main page as "anchor text"

My solution is following: simply to change <title> tag algorythm should be in this manner:

<title>IF IT IS SUBCATEGORY PAGE THAN SHOW IN TITLE TAG FOLLOWING: {MAIN SITE KEYWORD} + {subcategory title from admin panel}&nbsp;{$config.suffix}, IF IT IS NOT SUBCATEGORY THAN SHOW THIS CODE:{$title}&nbsp;{$config.suffix}</title>

Thank you in advance for help

barasan
08-14-2007, 07:03 AM
Is there any solution available?

Dave Baker
08-14-2007, 10:54 AM
Welcome to our forum barasan,
You can try something like this:
***Open templates/yourTemplate/header.tpl and find code***

<title>{$title}&nbsp;{$config.suffix}</title>

***Replace with***

{if $category.id eq "0" AND $category.id neq ""}
<title>MAIN SITE KEYWORD + {$title}&nbsp;{$config.suffix}</title>
{else}
<title>{$title}&nbsp;{$config.suffix}</title>
{/if}