Active
Project:
Entity Panels
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 May 2015 at 15:38 UTC
Updated:
29 May 2015 at 22:21 UTC
Jump to comment: Most recent
I think the template suggestions probably need to be prefixed with module name to avoid conflicts with other module and/or theme implementations. Currently, this will conflict with anything else that allows for the template node--page.tpl.php, for example.
(from line 278, entity_panels.module)
$variables['theme_hook_suggestions'][] = $entity_type . '__' . $bundle;
$variables['theme_hook_suggestions'][] = $entity_type . '__' . $entity_id;
$variables['theme_hook_suggestions'][] = 'entity_panels_'. $entity_type . '__' . $bundle;
$variables['theme_hook_suggestions'][] = 'entity_panels_'. $entity_type . '__' . $entity_id;
Comments
Comment #1
maximpodorov commentedMaybe it's better to allow to use the same template for panelized and rendered in core entities. If so, the only thing to fix is to wrap $content by render() in the template. What do you think?
BTW, is it correct to add theme suggestion by view mode?
The module was a quick solution which can be improved in many ways. So new thoughts are welcomed.