I may be missing something, but it seems you can't override the themeable output of nodes.
For example, if a module contains this (and has a matching "my-node-file.tpl.php" file in its folder):

function MODULENAME_theme(){
	return array(
		'node' => array(
			'path' => drupal_get_path('module', 'MODULENAME'),
			'template' => 'my-node-file'
		),
	);
}

this works fine with Tao or Garland, but not with Rubik.

Comments

wildpeaks’s picture

Theming "user_profile" from a module that same way seems to work fine with Rubik however, so it's really something specific to the theming of nodes.

wildpeaks’s picture

Priority: Normal » Minor

Edit: it's happening in the Cube theme, not Rubik itself.

frankspin’s picture

I have the same problem, with the Cube theme. I copy/pasted the "templates" folder from the Rubik Theme. And cleared my cache. My system now uses the file node.tpl.php located in cube/templates . But if I make a copy of the node.tpl.php file and rename the copy to node-product.tpl.php it does not recognize it.

webadpro’s picture

I'm actually having the same problem although i think its something in the tempalte.php located in the rubik folder.

I think it has to do with the following code:

LINE 314:
  if (in_array($theme_key, array('rubik', 'cube'), TRUE)) {
    $vars['template_files'] = array();
  }
webadpro’s picture

I have actually commented :

line:

$vars['template_files'] = array();

And Added my template node-nodetype.tpl.php in templates folder located in rubik and it did the trick for me. Also, im not using rubik but cube but it seems like the tpl file needs to be in the rubik folder.

stBorchert’s picture

If you try to provide default templates from a module, rubik (especially the function rubik_preprocess_node) breaks this, because it simply remove all template suggestions made before. This is a bad idea imo.

Any reasons why this is done here?

aramboyajyan’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

All old and outdated 6.x issues are being closed.
Maintainer support will be provided only for major / blocking issues.

If you feel like this issue should be re-opened, feel free to do so.

Thanks!