Has anyone worked on any panel layouts for blueprint? I am thinking about creating a blueprint_panels module offering various 3, 4 and 5 column layouts.
Has anyone worked on any panel layouts for blueprint? I am thinking about creating a blueprint_panels module offering various 3, 4 and 5 column layouts.
Comments
Comment #1
designerbrent commentedI haven't yet had a chance to use panels 6 but that could be interesting. Is a module the only way to provide additional layouts to panels or is that something that can be done at the theme level?
Comment #2
DerTobi75 commentedPanels 2 support would be great!
Comment #3
chadchandler commentedWhat? You don't need a module to use the Panels module with this theme.
You just need to go into the layout settings of Panels and change the theme settings to reflect your theme.
Comment #4
mfb@Prodigy, I am talking here about adding additional layouts, not theming the existing layouts.
Comment #5
chadchandler commentedOh okay .. my mistake. You do know there is a "flexible" layout in Panels that allows you to manually set widths as em,%, or pixels for rows and columns. I can't imagine needing more than that? Sorry again.
Comment #6
mfbSure, but I was thinking there might be a "market" for pre-built layouts designed to work with blueprint?
Comment #7
designerbrent commentedDoes panels support providing layouts from outside of it's own module folder? last I played with it, you had to make any custom layouts in the module folder.
Comment #8
chadchandler commentedIt's just not needed. Now if you are talking about styling .... that's another issue. I can see there being an audience for styled panels.
Comment #9
mfbI haven't contributed it (yet) but it was easy to make my own blueprint_panels module that uses the panels API to add a set of layouts.. these have no CSS and just use blueprint classes in the layout templates like span-12, span-4, span-8, last, etc. to create various 3-, 4- and 5-column layouts.
This is definitely not rocket science and anyone else can do the same thing.. but it could save some time if anyone else wants to recreate these same layouts..
Comment #10
merlinofchaos commentedNo, all of panels plugins are through hooks. Any module can provide any of Panels plugins, including layouts. I'm not sure why people believe differently.
Comment #11
dagomar commentedIn the panels module folder, find:
plugins>layouts
You can just add a custom blueprint compatible layout there i imagine...
*edit*
I just did this. It is not so difficult. To get started I copied one of the panel provided layouts, and then changed the names and everything in the files to use blueprint css instead of the one provided by panels. I'll give a quick rundown:
In the folder modules/panels/plugins/layouts is where the magic happens.
I wanted a layout like: 1 - 3 (50% - 25% - 25%) - 3 (3x33%) - 1. I copied one of the panels layouts (3 columns stacked, but doesnt really matter)
You need to name the folder and filenames in a similar fashion as themes:
In my case i ended up with:
BP_1_3_3_1/BP_1_3_3_1.inc
BP_1_3_3_1/BP-1-3-3-1.tpl.php (note that I had to use - instead of _ here, I dont understand why.)
In the inc file I adjusted the names, and in the tpl.php I made the structure that I wantd. It is very important that you add a class to your containing div with the name of your panel layout, like: panel_BP_1_3_3_1.
I think thats all, not a perfect step by step guide, but may get someone else started. Good luck!
Comment #12
mikeytown2 commentedany word on this?
Comment #13
smithn.nc commentedSubscribing!
Comment #14
designerbrent commentedMoving this forward to the next version, though it may come later.
Comment #15
designerbrent commentedComment #16
avpadernoI am closing this issue, as Drupal 6 is now not supported.