Hi there.
I have created a panel and would like to create a template for each pane. Each pane just simply shows one node. In the Panels content settings it is possible to define a 'Template identifier' e.g node-panel-IDENTIFIER.tpl.php.
Ive tried this but it just won't work for me.
My thinking! Replace word IDENTIFIER with chosen identifier (eg. frontbanner). Write node-panel-frontbanner.tpl.php or just frontbanner (neither work) in available textarea.
Save panels.
Create node-panel-frontbanner.tpl.php and save in theme folder.
Clear cache. Voila!
But the template just won't catch

What am I doing wrong?

Comments

quercus020’s picture

This is what is stated in the panels content pane settings:-

"This identifier will be added as a template suggestion to display this node: node-panel-IDENTIFIER.tpl.php."

And that is exactly what I want. Sounds easy eh..but this is killing me

sblommers’s picture

I do the exact same thing,.. tried copying the template to all locations but it just won't pick it up.

sblommers’s picture

uh ..... disabled Node Display (module) and now it works......

Duhh

dalegrebey’s picture

The help text for Panels is a bit confusing/miss labeled. You would expect to enter: node-panel-IDENTIFIER.tpl.php into the Template Identifier field (e.g. node-panel-mypanel.tpl.php) in order for it to be recognized as a template suggestion.

...What you ACTUALLY have to do, is just enter the IDENTIFIER and than name your template file accordingly. So...

Template Identifier: mypanel
/themes/mytheme: node-panel-mypanel.tpl.php

i.e. name the template file accordingly, but just enter the identifier name in the panels field.

Hope that helps!

midori_berlin’s picture

you're a star...finally registered here just so I could say how much hassle that simple piece of advice saved me. many thanks!

jaialin’s picture

tried

page--node-panel-[IDENTIFIER].tpl.php
page--node-panel.tpl.php
node--panel-[IDENTIFIER].tpl.php

I even have a node.tpl.php in my theme. Nothing sticks.

itaces’s picture

egifford’s picture

Subscribing so I don't forget this gem.

juanluazee’s picture

"NOTE: When using phptemplate node-[type].tpl.php suggestions, there must also be an original node.tpl.php template present in your theme directory or the template suggestion is ignored."

http://drupal.org/node/17565

I hope this helps!

naero’s picture

If you are looking to do a page override on a Panel Page, take a look at this post here:

http://drupal.org/node/334209

dco’s picture

Just to remind me this interesting post...

aschiwi’s picture

There is a new module that makes using pane templates really easy: http://drupal.org/project/pps