Active
Project:
Panels Everywhere
Version:
7.x-1.0-rc1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2012 at 19:02 UTC
Updated:
13 Sep 2013 at 13:47 UTC
Jump to comment: Most recent
I follow the below instruction according to document in module but not possible to get
panels_everywhere_site_template in reference variable.... hence the template not executing!
You can also give your theme a hybrid mode where it will be smart and use its
normal page.tpl.php if the site_template is not in use, and use a stripped
down page.tpl.php if it is. Place the following code in your theme (chances
are you already have a preprocess page).
function MYTHEME_preprocess_page(&$vars) {
if (!empty($vars['panels_everywhere_site_template'])) {
$vars['template_file'] = 'page-panels-everywhere';
}
}
Please let me know if any alternative solution of this
Comments
Comment #1
Letharion commentedI've never tried this, so I don't quite follow. What is not possible?
Doesn't sound like a critical problem.
Comment #2
roynilanjan commentedpage-panels-everywhere.tpl.php is not possible to execute! by using the above snippet according to README of module!
Comment #3
merlinofchaos commentedIn Drupal 7, $vars['template_file'] has changed. I think you need to use $vars['theme_hook_suggestions'][] now, but I'm not 100% sure. I always forget exactly how that was changed. Please check the theming documentation for this.
Comment #4
roynilanjan commentedOk tnx will investigate & let u know
Comment #5
roynilanjan commentedOk tnx will investigate & let you know if any problem
Comment #6
pyxio commentedHi roynilanjan. did you ever find the answer to this? cheers kevin
Comment #7
iztok commentedStumbled on the same issue. It seems like this hybrid page.tpl.php is not getting picked up.
Seems like that documentation for this is outdated since stripped down page.tpl is not being used anymore.