THEME_preprocess_page and THEME_panels_pane give me a lot of what I need for my purposes. Have you tried those? It would be nice to THEME_preprocess_panel_PANELNAME, but I don't think that's out there.
I need access to some of the page variables: $breadcrumb, $mission, $tabs, $title, $tabs, $tabs2, $show_messages, $messages, $help in my panels-*.tpl.php files. I tried declaring the pages vars as global in THEME_panels_pane, but that doesn't work. How do I gain access to these vars in the tpls?
Comments
take a look at a the page
THEME_preprocess_page and THEME_panels_pane give me a lot of what I need for my purposes. Have you tried those? It would be nice to THEME_preprocess_panel_PANELNAME, but I don't think that's out there.
Also, check out this method: http://drupal.org/node/334209#comment-1330758
Access page variables in panel templates
I need access to some of the page variables: $breadcrumb, $mission, $tabs, $title, $tabs, $tabs2, $show_messages, $messages, $help in my panels-*.tpl.php files. I tried declaring the pages vars as global in THEME_panels_pane, but that doesn't work. How do I gain access to these vars in the tpls?
Use preprocess_page
You have to use preprocess page to get access to these variables. Check http://drupal.org/node/223430