I am using the latest version. I tried to dsm the $title variable in page.tpl.php but it is empty in taxonomy term page and in the product display page

Does anyone else facing this problem??



jajouka’s picture

yes, I am having the same issue regardless of which theme I use but the problem is in the node.tpl.php page.

odizle’s picture

Hi, did you manage to get this working? I am having the same issue, Views pages dose not show the title no matter what theme.

dianikol’s picture

They way i did it is in template.php using preprocess hook and drupal_get_title() to save in a $title variable the current title

jsacksick’s picture

We're overriding it in multiple places, I'm not sure what to do with that issue, we've decided to hide the title in some of the pages. We probably should add a Kickstart settings form somewhere and hide these kinds of overrides.

dianikol’s picture

I think in the template.php and using drupal_get_title() you'll get the last override before print it. Is is what you need? I mean the end result of the title. Maybe an extra field will do the job!

dianikol’s picture

lsolesen’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

Seems that @jsacksick answers the question. Please reopen if you disagree.

sagacity’s picture

For me it was still not working, even with configuration (Commerce Kickstart 7.x-2.22). For me this helped (in template.php or as own module):

function your_module_process_page(&$variables) {
    // check if we have taxonomy and term and numeric positive id
    if (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2)) && arg(2) > 0) {
        // set $title
        $variables['title'] = drupal_set_title();