A couple of weeks ago, I agreed to work on the Panels Mini module, which would become part of the second version of Earl Miles' outstanding Panels module. While working on that, I suggested to let modules implement styles for panels. (I was inspired by Nedjo Rogers' Panelsblock module, which sort of gives you "tabbed Mini Panels" for Panels 1). All you then would have to do, is: pick the Panel Style in the settings for the Mini Panel (or whatever other Panels implementation chooses to support it) and then change the CSS to get exactly what you want. This should prove to be a real timesaver.
I've written 2 Panel Styles so far: Carousel Panel Style and Tabs Panel Style. The latter might be included in Panels 2. Both were sponsored by Paul Ektov.
To write a Panel Style, you only have to implement 2 hooks, or 4 hooks if you want to offer configuration options. Hopefully that will result in many contributed Panel Styles!
hook_panels_panel_style_info()hook_panels_panel_style_render()hook_panels_panel_style_settings_form()hook_panels_panel_style_settings_validate()Without further ado, a fairly fancy demo of all this.
Mini Panels and the Panel Styles hooks are available in the Panels 2 CVS, and will be included in Panels 2 alpha 8 when it gets released. Be warned that Panels 2 is still a work in progress!
Comments
this is a major thing for
this is a major thing for non-developers. Hooray :)
mini-panels in blocks
Could you get the mini panels module to display a menu?
For example: parent menulinks as tabs; children of the selected tab as content in the mini-panel
The problem might be that you would want drupal to remember where you are on the site. If I'm not mistaken, panels resets the mini-panel on every page load.
greetings,
TUc
Support requests don't belong here.
For starters, this is definitely not the place to ask support questions.
Secondly, you haven't even tried using Mini panels, because one of their primary goals is to be exposed as blocks and they can contain any content: menu's, views, blocks, etc.
Please read the documentation next time ;)
Post new comment