I overwrite panels-pane.tpl.php by simply having this:

print $content;

Now I want to do more with $content. For example: depending on if this pane is for Node:Title, Node:Body, etc, I want to do some custom work on this pane.

I find that if I modify panels-pane.tpl.php, it will apply to all panes.

Is there a way to customize individual pane?

Thanks!

Comments

Anonymous’s picture

subscribe

minghui.yu’s picture

Follow up:

If I create a View that contains field Title, Body, etc, then I can customize the template for that View and then use that View in my Panel.

However, that will have lots of overwritten files: for each View, I need to overwrite at least four templates (view page/block, row style, etc.)

Letharion’s picture

Status: Active » Fixed

There is currently no support for this. It will probably show up some day. Currently you will have to implement the theme function for panels instead.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.