15 replies [Last post]
thill's picture
Offline
Joined: 01/25/2008
Juice: 815
Was this information Helpful?

I am still going at the problem of trying to assign a different page title to a category other than the actual term name for SEO reasons.

I thought i was getting somewhere with the Taxonomy Enhancer module on d.o adding a field called catalogtitle to the vocab and adding the following in a page[catalog-tpl.php file:

<title><?php $t = taxonomy_get_term(arg(2)); taxonomy_enhancer_extend_term($t); echo $t->catalogtitle;?></title>

That doesn't seem to work like i thought it would.

If anyone has been successful in altering a page title for the catalog pages I would love to hear about it.

Thanks

venkat-rk@drupal.org's picture
Offline
Joined: 03/19/2008
Juice: 205
Re: Any luck changing Page titles throughout the catalog?

Doesn't the PageTitle module do this? Or, does it not work for taxonomy term page titles?

thill's picture
Offline
Joined: 01/25/2008
Juice: 815
Re: Re: Any luck changing Page titles throughout the catalog?

Correct that is the problem, the page title module doesnt work for taxonomy terms.

Da-Icon's picture
Offline
Joined: 09/04/2008
Juice: 66
hello

I dont know if this is a match for you but i needed something a little simular.. possibly the module Automatic Nodetitles 5.x-1.1 might help you. with what your doing

Da-Icon

thill's picture
Offline
Joined: 01/25/2008
Juice: 815
Re: hello

Thanks for the info, that module only affects nodes, i am trying to deal with taxonomy pages, the search continues, I posted a question on the actual Taxonomy Enhancer module page about how to output the text from the custom field hopefully the module creator has some help.

The reason I am asking here is it seems like other uber's would be concerned about SEO of Catalog category pages as well. I am looking to keep the catalog vocab short for page cleanliness (desk chairs, rocking chairs, computer chairs) but need longer page titles for SEO and clickthru rates.

It should be similar to how ubercart inserts a photo field into the taxonomy catalog for inserting catalog photos and then outputs them on the catalog pages. I will go dig in to the Uber awesome code and see how they add the image field to the catalog taxonomy and how they output that on the catalog pages.

venkat-rk@drupal.org's picture
Offline
Joined: 03/19/2008
Juice: 205
Re: Re: hello

For anyone still looking for a solution to the problem of category page titles, this module may do the trick:
http://drupal.org/project/taxonomy_title

thill's picture
Offline
Joined: 01/25/2008
Juice: 815
Re: Re: Re: hello

Nope- that changes the taxonomy pages, not the catalog pages, two different animals.

Catalog is a taxonomy vocab, but the way they are rendered is totally different.

venkat-rk@drupal.org's picture
Offline
Joined: 03/19/2008
Juice: 205
Re: Re: Re: Re: hello

Oh, I thought that your original post meant you wanted to change the titles of the taxonomy term pages (terms within the vocabulary) for SEO reasons.

chum's picture
Offline
Joined: 02/27/2009
Juice: 151
Re: Re: Re: Re: Re: hello

I've been trying to find a solution for HOURS... The Page Titles module is great but doesn't yet work for Catalog (taxonomy) pages.

There was a patch put out that is supposed to enhance support to the taxonomy term pages but I couldn't get it to apply.

thill's picture
Offline
Joined: 01/25/2008
Juice: 815
Re: Re: Re: Re: Re: Re: hello

Changing page title on taxonomy pages is easy with taxonomy title module. However Catalog pages are not taxonomy pages, they are different. This would have to be Ubercart specific.

chum's picture
Offline
Joined: 02/27/2009
Juice: 151
Re: Re: Re: Re: Re: Re: Re: hello

To be specific, I want to be able to have custom title tags (for SEO purposes) on the catalog pages, which are the pages that contain grid views of thumbnails that lead to either other catalog pages of sub-catalog pages, or ultimately to product pages.

venkat-rk@drupal.org's picture
Offline
Joined: 03/19/2008
Juice: 205
thill wrote:Changing page
thill wrote:

Changing page title on taxonomy pages is easy with taxonomy title module. However Catalog pages are not taxonomy pages, they are different. This would have to be Ubercart specific.

I am not sure they are different. A Ubercart catalog is basically a drupal taxonomy vocabulary and the catalog categories are just the taxonomy terms within the vocabulary. The catalog page is actually the vocabulary page. So, what we are really missing is the ability to customize the page titles for vocabulary pages.

thill's picture
Offline
Joined: 01/25/2008
Juice: 815
Re: thill wrote:Changing page

You will have to trust me on this, they are different, you still have term/foo, even though you have catalog/foo. They are rendered different.

Maybe this will help:

http://livetest.ubercart.org/uc1/category/catalog/coding-tools taxonomy term page
http://livetest.ubercart.org/uc1/catalog/1 catalog page

mikejoconnor's picture
Offline
AdministratorBug FinderGetting busy with the Ubercode.
Joined: 08/07/2007
Juice: 536
Re: Re: Re: Re: Re: Re: hello

It maybe a bit of a hack, but I simply use drupal_set_title() to set the title. It requires a bit of coding, but gives you a lot of control, regardless of what page you are on.

chum's picture
Offline
Joined: 02/27/2009
Juice: 151
Re: Re: Re: Re: Re: Re: Re: hello

Interesting... Is there a guide that explains specifically what changes I have to make, and how this works once the code is updated? To clarify, my main goal is to be able to give each catalog page a specific title tag. I don't need the value to show up on the pages, just within the tag.

Chum

mikejoconnor wrote:

It maybe a bit of a hack, but I simply use drupal_set_title() to set the title. It requires a bit of coding, but gives you a lot of control, regardless of what page you are on.

venkat-rk@drupal.org's picture
Offline
Joined: 03/19/2008
Juice: 205
thill wrote:Correct that is
thill wrote:

Correct that is the problem, the page title module doesnt work for taxonomy terms.

I see an alpha version of the module that has token integration that can possibly be the solution to your problem. Check out the recent write up on the project page.