1. Test Radix + Panels Everywhere
  2. Write documentation for using Radix + Panels Everywhere.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

PI_Ron’s picture

HI Arshadcn,

Is Radix working well with Panels Everywhere?

If so, do you still need documentation written?

shadcn’s picture

Hi

Yes. Radix working well with Panels everywhere. Using it in the Restaurant Distribution: https://www.drupal.org/project/restaurant

I still need to find the time to write documentation for it but it shouldn't be too different from what is already here: http://cgit.drupalcode.org/panels_everywhere/tree/README.txt

PI_Ron’s picture

Hi Arshadcn,

I've tried to get PE working with my radix subtheme and having no luck. When I click the 'Customise this page' button the throbber spins for a little while then nothing happens.

I've looked through restaurant_radix and can't figure out what is different to my theme.

I also tried making my own copy of restaurant_pages module to enable the same bunch of settings, but I still cannot get the IPE to work. Please note I'm trying to use the IPE on a radix_layout, not the site template.

Is there any special config I might be missing for getting it working with a radix subtheme?

shadcn’s picture

Are you using jquery_update? You will need jQuery 1.7 or 1.8.

PI_Ron’s picture

Yes, the site is using Panoply & jQuery 1.7 by default. The IPE works fine when panels everywhere is disabled.

PI_Ron’s picture

After a bit of digging, I've found that when PE is enabled via checkbox 'Enable Panels Everywhere site template', radix-script.js starts throwing 'Undefined is not a function' errors.

Commenting out the functions in radix-script.js gets IPE working again (and any other js):

After comparing the site with PE off/on, it looks like Bootstrap JS & Modernizer JS are not being included with PE enabled.

PI_Ron’s picture

Within restaurant_radix theme, I've found that you're adding bootstrap within preprocess_html rather than falling back to base themes (radix) preprocess_page:

/**
 * Implements template_preprocess().
 */
function restaurant_radix_preprocess_html(&$variables) {
  global $base_url;

  // Add Bootstrap JS.
  $base = parse_url($base_url);
  drupal_add_js($base['scheme'] . '://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js', 'external');
}

Adding this code to my theme re-added bootstrap js (I assume the because PE takes over page.tpl.php then the preprocess_page in radix isn't being used?), however modernizer was still not being added. I found that the radix theme of restaurant distro, modernizr was added to the .info file, whereas within my site, modernizr was not (added vie preprocess_page instead).

So to recap:

1. Add bootstrap via yourtheme_preprocess_html
2. Add modernizr to your theme:

scripts[] = assets/javascripts/modernizr.js

Hope this helps someone out.

shadcn’s picture

Status: Needs work » Fixed

We've moved this to preprocess_html. Thanks.

Status: Fixed » Closed (fixed)

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

kopeboy’s picture

Category: Task » Support request
Status: Closed (fixed) » Needs review
FileSize
90 KB
97.29 KB

The navigation is not Bootstrap styled if added in the Panels Everywhere's "Default site template", using the "Page navigation" pane under Page elements.

How to fix that?
I tried adding the CSS classes manually from Panels UI but that isn't enough.

Some documentation on how to edit the pane-navigation.tpl.php in your theme would be really helpful..

kopeboy’s picture

... and this is what happens if I try to copy the <header> part of code from page.tpl.php (of Radix) into pane-navigation.tpl.php (the one inside PE module).

NWOM’s picture

@kopeboy, I'm having the same issue for the last year or so. Did you perhaps find a solution?

shadcn’s picture

Status: Needs review » Closed (outdated)

Closing this as outdated. Feel free to reopen if not. Thank you.