Last night I did a presentation on the Panels 2 module at the local LADrupal user group meet up. This session followed a great introduction to the views module put on by Michael Thorne.
As promised I have put together a list of references for those looking to learn more about the panels module and I also packaged the custom module that I wrote to demonstrate how to add your own custom layout. You may notice I added more annotation to the code as well as a second layout. I tried to be as verbose as possible on how it works, but as always don't hesitate to ask any questions that you may have.
As a side note, some people ask why you would create a custom layout when there is a default layout that allows you to add and resize rows and columns at your disposal. My answer is that, you may want to have your content output in a specific manner with your own styles. It's also a great feature because creating a custom layout could be faster than using the flexible multi-column-row default layout; this is because all of the settings are actually coded into the layout, not stored in the database.
References:
- Panels Project
- Drupal Handbook Documentation
- GHOP Panels Screencast
- Taxonomy Page Override with Panels Visualized
| Attachment | Size |
|---|---|
| custom_mod.zip | 4.36 KB |







This is great! I created
This is great! I created some custom panel layouts in no time which I can use for all my pages. It's going to make theming the website a lot easier, and now I can create layouts that are impossible without this this method.
I still found it useful to look at the code in the panels module under the layouts directory, just to find a layout that was close to what I wanted and then I could modify it to fit my needs.
Thanks
Post new comment