Forums / Templates, Stylesheets, Page Layout / Add all categories & sub categories to browser title

Add all categories & sub categories to browser title

Locked

Views: 1,357

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
12 Feb 2008, 9:57 AM
#1
blaze_falconburger avatar

blaze_falconburger

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Add all categories & sub categories to browser title

Where/how can I change the title so that when you are viewing a product say 3 levels deep it shows the main category, sub category then the selected category?

By default it just shows the selected category and I would really like the browser title to show the categories and sub categories as well - it would be much more meaningful!

12 Feb 2008, 11:06 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Add all categories & sub categories to browser title

Are you referring to "breadcrumbs"... ?

If so, there is a setting in admin to switch these on and off.

20 years a Zencart User

12 Feb 2008, 12:15 PM
#3
blaze_falconburger avatar

blaze_falconburger

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: Add all categories & sub categories to browser title

No, the browser title - It just displays the selected category, which could be 3 or 4 categories deep from the root. This doesn't give a very descriptive page title as it only shows the selected. It would make more sense if I could have it display the main category, then the sub category, then the selected sub category again.

So I want the browser title to display similar text to the entire path of the breadrumbs - how can I do this?

12 Feb 2008, 12:19 PM
#4
blaze_falconburger avatar

blaze_falconburger

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: Add all categories & sub categories to browser title

e.g.
main cat 1
main cat 2
main cat 3
--sub cat 1
--sub cat 2
----sub sub cat 1
----sub sub cat 2
--sub cat 3

if you are looking at products in sub sub cat 2 then it only displays the text for that category in the browser title. This text is usually something fairly meaningless like "32mm"

Instead I want to display something like :
main cat 3, sub cat 2, sub sub cat 2

which might translate to :

Carbs, Weber, 32mm

So similar to breadcrumbs, but wokring these into the title.

17 Feb 2008, 11:54 AM
#5
crinolina avatar

crinolina

New Zenner

Join Date:
Nov 2007
Posts:
28
Plugin Contributions:
0

Re: Add all categories & sub categories to browser title

i am looking for the same thing but no luck so far

17 Feb 2008, 4:54 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,681
Plugin Contributions:
0

Re: Add all categories & sub categories to browser title

Adapt the code that builds the Breadcrumbs to be used in the Meta Tags.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

17 Feb 2008, 9:19 PM
#7
crinolina avatar

crinolina

New Zenner

Join Date:
Nov 2007
Posts:
28
Plugin Contributions:
0

Re: Add all categories & sub categories to browser title

i've tried and am still trying but i am a little short on php knowledge.... i need help:frusty::frusty:

thanks