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.
Hi,
is there a way to use a Gpanel multiple times? In my case I want to use the 3-column Gpanel in the header and the footer. Following the documentation, I copied the snippets in the page.tpl.php. Then I recognized that the regions have the same names.
Is there any solution?
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedSorry, but no its not possible, you can create more gpanels by copying the original and renaming things and putting it in your theme - if you can figure this out its one way. The other way is to use Panels, then you can have as many as you like.
Comment #2
Cebra CreditAttribution: Cebra commentedThx for your fast reply.
But I cannot rename the name in the render part or?
print render($page['two_33_66_top']);
If I replace "two_33_66_top" with "footer_top" the Gpanel will not be rendered. Or what do you mean with "renaming" ?
In this case all the CSS definitions of the two_33_66 is gone and I have to define the properties for my new GPanel manually
Comment #3
responsiveconsulting CreditAttribution: responsiveconsulting commentedHello Jeff,
I am stuck with the same question...
Comment #4
WeNetwork CreditAttribution: WeNetwork commentedJeff, please have a look at my solution for the Adaptivetheme GPanels which go into e.g. page.tpl.php. Works for me at first sight...is this a valid solution?
PS: Guess I have to add another class so highlighting text with regions will work...have to figure this out. There is also 1 exception to my solution. The TOP and BOTTOM regions will not work since the class="region" after the class="region-conditional-stack" effects the regions layout.
Comment #5
WeNetwork CreditAttribution: WeNetwork commentedFound a solution for the TOP and BOTTOM region. You just need to add 1 CSS rule as override!
page.tpl.php
custom.css
This will prevent the CSS rule ".at-panel .region {...};" to effect the TOP and BOTTOM div!