I have created the following function inside preprocess-region.inc

function MYTHEME_alpha_preprocess_region(&$vars) {
  
  if (($vars['region'] === 'content') && ($vars['elements']['system_main']['#form_id'] == 'uc_cart_checkout_form'))    {
  	//print $vars['elements']['system_main']['#id'];	
  	//$vars['theme_hook_suggestions'][] = 'uc__cart__checkout__form';
  	$vars['theme_hook_suggestions'] = array('uc__cart__checkout__form');
  }
}

Using the Devel module now, it tells me that theme_hook_suggestions is in fact set to use uc--cart--checkout--form.tpl.php for the region.

Using the Theme Developer module ( http://drupal.org/project/devel_themer) when I click on the 'content' region,
it is telling me:


Candidate template files:
uc__cart__checkout__form < sites/all/themes/omega/omega/templates/region.tpl.php

What the heck? Why is it pointing to the parent theme default region.tpl.php file??

Comments

asauterChicago’s picture

Same problem. Unless I'm missing something (I did RTFM, but I don't see anyway to do this with the Omega base). The ability seems like a fairly important missing function. Like sometimes you need to add more than what Delta, Context and CSS can offer alone. For example, I've run into what should be a really simple change to a page template. In my case, I want to have the same background for the top content zones (header, sidebars, and content zones) and a different one for the footer zone.

This becomes problematic because you only have the option to add backgrounds to three regions and by design you are unable to add additional wrapper classes for the zones combined. If you only add it to one, it only shows up in one. You can edit the page.tpl.php under Alpha, to add additional divs around those zones, but it won't recognize subtheme templates, (like page--videos.tpl.php) under your /templates subtheme. Nor will it recognize templates actually in the /alpha folder (tried creating templates there as well and under /omega, it ignores them). There's seems to be no possible way of making custom page or node templates...

This, IMHO, is sort of big deal. It kills everything Omega has going for it. The added functionality of Delta and Context is outweighed by the lack of options to make a custom templates in special circumstances. It would be great if there could be a fix for this, I really don't want to go back to Zen :-/.

tema’s picture

Not sure for page templates. Cannot override entity.tpl.php.

However, it works for nodes and fields (this way: http://drupal.org/node/1536070#comment-6416728).