By quercus020 on
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
This is what is stated in the
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
Same here
I do the exact same thing,.. tried copying the template to all locations but it just won't pick it up.
uh ..... disabled Node
uh ..... disabled Node Display (module) and now it works......
Duhh
Panels Template Identifier
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!
THANK YOU!
you're a star...finally registered here just so I could say how much hassle that simple piece of advice saved me. many thanks!
Does this work for Drupal 7 also?
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.
there's a fix in the latest dev
see http://drupal.org/node/1134802
Subscribing so I don't forget
Subscribing so I don't forget this gem.
Do you have a node.tpl.php in your theme directory?
"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!
If you are looking to do a
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
Subscribing
Just to remind me this interesting post...
There is a new module that
There is a new module that makes using pane templates really easy: http://drupal.org/project/pps