Page Header Title

+1
0
-1

copying this http://www.themebrain.com/question/non-content-type-title-metroz

is there a way to make the product display page display "category / product title" instead of "Product Display"? or maybe even just the category like here

http://demo.themebrain.com/tb_metroz/categories/canon

it says canon at the top, then here it says product display

http://demo.themebrain.com/tb_metroz/product/canon-powershot-s100

+1
+1
-1

thanks for the tip will, i added the following in order to get what i was looking for.


if (isset($vars['node']) && $vars['node']->type == 'product_display') {
$cat = taxonomy_term_load( $vars['node']->field_category['und'][0]['tid'] );
$category = 'name.'">'.$cat->name.'';
$title = 'title.'">'.$vars['node']->title.'';
$vars['title'] = $category.' / '.$title;
}

+1
0
-1

Hi seesoe,

Yes, there is a way but you need to write your own PHP code inside the function "tb_metroz_preprocess_page" located at sites/all/themes/tb_metroz/template.php to query the category and display it in the Page title place.

Will