Specifying a "Template identifier" containing "-" on a node inserted into a panel region generate wrong theme template suggestion mentioned in the description under the field.

As an example, I've added a node to a panel layout with a Template identifier of "my-test". I then created a tpl file in my theme at /templates/node/node--panel--my-test.tpl.php. (there is also a node.tpl.php in the same location).

I rebuild the theme registry, cleared the cache, reloaded the page. The result is still rendered using the node.tpl.php even if the module Theme Developer contains the node--panel--my-test.tpl.php template.

But if I remove the "-test" and created a tpl file in my theme at /templates/node/node--panel--my.tpl.php. The result is rendered using the node--panel--my.tpl.php as expected.

I'm not sure if the bug is in Ctools or Panel but the module Theme Developer display the tpl file node--panel--my-test.tpl.php in the "Candidate template files".

Comments

pol’s picture

Issue summary: View changes

Hi,

I had the same problem with Panels Layouts too, never use hyphens in the template name.

darrenwh’s picture

darrenwh’s picture

Status: Active » Closed (works as designed)

I'm closing this as its not a bug