Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
- Test Radix + Panels Everywhere
- Write documentation for using Radix + Panels Everywhere.
Comment | File | Size | Author |
---|---|---|---|
#11 | Screen Shot 2015-09-16 at 02.17.22.png | 104.87 KB | kopeboy |
#10 | with PE.png | 97.29 KB | kopeboy |
#10 | normal navigation.png | 90 KB | kopeboy |
Comments
Comment #1
PI_Ron CreditAttribution: PI_Ron commentedHI Arshadcn,
Is Radix working well with Panels Everywhere?
If so, do you still need documentation written?
Comment #2
shadcn CreditAttribution: shadcn commentedHi
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
Comment #3
PI_Ron CreditAttribution: PI_Ron commentedHi 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?
Comment #4
shadcn CreditAttribution: shadcn commentedAre you using jquery_update? You will need jQuery 1.7 or 1.8.
Comment #5
PI_Ron CreditAttribution: PI_Ron commentedYes, the site is using Panoply & jQuery 1.7 by default. The IPE works fine when panels everywhere is disabled.
Comment #6
PI_Ron CreditAttribution: PI_Ron commentedAfter 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.
Comment #7
PI_Ron CreditAttribution: PI_Ron commentedWithin restaurant_radix theme, I've found that you're adding bootstrap within preprocess_html rather than falling back to base themes (radix) preprocess_page:
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.
Comment #8
shadcn CreditAttribution: shadcn commentedWe've moved this to preprocess_html. Thanks.
Comment #10
kopeboy CreditAttribution: kopeboy commentedThe 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..
Comment #11
kopeboy CreditAttribution: kopeboy commented... 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).Comment #12
NWOM CreditAttribution: NWOM commented@kopeboy, I'm having the same issue for the last year or so. Did you perhaps find a solution?
Comment #13
shadcn CreditAttribution: shadcn commentedClosing this as outdated. Feel free to reopen if not. Thank you.