Hi,
I'm running a site with panels 6.x-3.9, panels everywhere 6.x-1.1, a custom panels everywhere theme for the main site and the current tinsel release (6.x-1.1) for the admin theme.
I recently un-ticked the 'Override the page template' option on the Panels Everywhere settings page. After doing this, I messed around with my theme's page.tpl.php, and when I came back to edit the site template, I got a completely blank screen. At first I thought it was the same issue at http://drupal.org/node/866090, but realised that the patch had already been committed (and was in the module code).
I tried to access the site template from the panels page list (admin/build/pages/list) and succeeded to get to it this way. It seems the links from the 'edit site template' tabs (and the same link pulled into admin menuu) take you to 'admin/build/pages/site_template' (which was inaccessible when not overriding the page template), whereas the direct edit link on the page list takes you to 'admin/build/pages/edit/site_template' (which is accessible when the override is off).
However, once I was actually on the edit screen, the tabbed links under the variants weren't working - the only ones that did work were 'Summary' and 'General', but nothing else.
Also, I'm a bit confused about overriding the template. Tinsel was working fine when override the template was checked, but as soon as I disabled that option the layout messed up and I got pages within pages. (The tinsel site template variant was cloned and changed to just contain the page header and page content by the way.) Considering it worked fine when overridden (therefore using the default panels everywhere page.tpl.php), I replaced the tinsel one with that. That got rid of the page within page problem on all admin pages. However, when I turned the override back on again, navigating to 'admin/build/pages/site_template' resulted in a single pane of content with no headers or sidebars. I thought that the site_template page falls back to the default panels everywhere template since the last commit? (It seems that it was using the tinsel one, because when I changed the tinsel page.tpl.php back to the original one, suddenly that page was back to normal.) I might be misunderstanding how this should work!
In both cases (when tinsel's page.tpl.php is left in its original state and when it's replaced with the one from the panels everywhere theme folder) the same problem occurs and I can't edit any variants of the site template. (Incidentally, testing it on multiple browsers kicked up a 'JSON is not defined' error in IE.) Yet at soon as I enable the override, I can edit them. This is effectively forcing me to leave the page override in place.
Oh and at every stage I was clearing the cache, so I don't think it's anything to do with that. I'm not sure if this is something specific to my set-up or if it's a more general issue, but I'd be grateful for any help! I wasn't sure if this was a normal or major issue: I can just keep switching the override on and off when needed at the moment as I'm still developing the site, but that wouldn't be possible on a live site.
I hope I've explained that well enough - if there's any more information you need just let me know. Thanks for such a fantastic module!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | edit-site-template.jpg | 117.32 KB | LGLC |
| #3 | site-template.jpg | 119.87 KB | LGLC |
Comments
Comment #1
LGLC commentedNot sure if this is relevant, but I forgot to say that my theme is based on the AT Panels Everywhere theme. Thanks.
Comment #2
merlinofchaos commentedI don't have the nid handy but scan the queue. I think there's an issue for this. It might have a patch.
Comment #3
LGLC commentedMerlin, you are a legend! Embarrassingly, it was actually the issue I linked to (I'd looked at the commits to the 6.x-1.1 branch that day and thought that patch was included). Thank you very much for such a hasty reply. I've just finished your new book by the way - great work.
I'll mark as fixed, but I'm still wondering how to get the site_template page to look like the rest of tinsel rather than having it display only the variant manager on the page and nothing else (with overrides off and once I've replaced tinsel's page.tpl.php with the panels everywhere one)? admin/build/pages/edit/site_template looks fine (without the /edit/ bit it doesn't, though - is there a difference between these two pages?), but as soon as I click on any of the tabs within a variant it suddenly becomes the only content on the page (see attached) again.
Just out of interest, how stable is the current dev? 'Views 3' stable or 'you probably shouldn't use this in production' stable? I love the additional contexts that are there - really incredible!
Thanks once again for your assistance, I really appreciate it.
Comment #4
merlinofchaos commentedThe site template variant renders through the fallback page.tpl.php for safety; if your site template is somehow hosed, you could end up in an unrecoverable situation. Perhaps one day if I can provide an easy-to-use switch to recover (maybe an alternate URL to edit site templates) then I could fix that so it's not as noticeable.