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

designerbrent’s picture

I 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?

DerTobi75’s picture

Panels 2 support would be great!

chadchandler’s picture

What? 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.

mfb’s picture

@Prodigy, I am talking here about adding additional layouts, not theming the existing layouts.

chadchandler’s picture

Oh 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.

mfb’s picture

Sure, but I was thinking there might be a "market" for pre-built layouts designed to work with blueprint?

designerbrent’s picture

Does 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.

chadchandler’s picture

It'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.

mfb’s picture

I 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..

merlinofchaos’s picture

No, 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.

dagomar’s picture

In 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!

mikeytown2’s picture

any word on this?

smithn.nc’s picture

Subscribing!

designerbrent’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

Moving this forward to the next version, though it may come later.

designerbrent’s picture

Status: Active » Postponed
avpaderno’s picture

Issue summary: View changes
Status: Postponed » Closed (outdated)

I am closing this issue, as Drupal 6 is now not supported.