Greetings,

I would like to change the title (products) that shows up within the main products page - just above the table layout of the different products. I have looked for a while and have not been able to find it. Any advice on where / what table / what file I could look?

Thanks

ambiance7

Comments

sime’s picture

Status: Active » Fixed

You need to retheme theme_product_view_collection

Anonymous’s picture

Status: Fixed » Closed (fixed)
B-Dot’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Hi,

I have exactly the same question as the first person who posted here.

I understand your answer, insofar as I understand about theme overrides and template.php.

I have been looking at the function 'theme_product_view_collection' on lines 23-67 of product.module in the hope that something would leap out at me. Unfortunately, nothing does.

Could you possibly elaborate a little more on how to achieve this change? It would be much appreciated.

Thanks,

B-Dot

(I am running Drupal 4.7)

sime’s picture

Only briefly as it's well documented.

1. copy theme_product_view_collection() into template.php
2. rename it mytheme_product_view_collection()
3. change it to be how you'd like.

sime’s picture

Oh, to change the title you might need to use, somewhere in the theme function:

drupal_set_title("my new title");

brmassa’s picture

Status: Postponed (maintainer needs more info) » Fixed
brmassa’s picture

Status: Fixed » Closed (fixed)