SlideShare a Scribd company logo
Panels 3:
The Power of
Chaos Magic
          Matt Cheney
       October 17th, 2009
        BADCamp 2009
in a galaxy far far away..

 Panels 2 - Tips and Tricks (BADCamp 08)
Panels is our Best Hope
•   Marshall Content

•   Drag & Drop Layout

•   Configurable in the UI

•   Views 2 + CCK Integration

•   Killer API

•   Exportable Elements

         “what do you want in your CMS?”
What Does it Do?
What Does it Do?
A Little History....
             Panels 1 (5.x)
A Little History....
Panels 2 (5.x)                      Panels 2 (6.x)




                 the long road...
A Little History....
   panels 3.0 released
         9.19.09
The Panels Paradigm
No Blocks   Every Page is a Panel
A Tour of Panels
                                 Mini Panels
          Panel Pages
                                          OG
                          Panel Nodes
          Layouts
                             Views 2
         Node Overrides
                             Field Placement

          Panel Styling
                                 Blocks
Panels and Chaos Tools
                   Chaos Tools
               a shared suite of APIs and tools
              to allow for wizardly development
                  drupal.org/project/ctools


                        Panels
                a system of layout and pane
               control to create your website

                 drupal.org/project/panels
The Panels/CTools API
    /**
     * Implementation of hook_ctools_plugin_directory() to let
     * the system know we implement task and task_handler plugins.
     */
    function module_name_ctools_plugin_directory($module, $plugin) {
      return 'plugins/' . $plugin;
    }



              module/plugins/content_types/
              module/plugins/layouts/
              module/plugins/contexts/
              module/plugins/arguments/
              module/plugins/tasks/
Extending Panels: Panes
      hook_ctools_content_types()

          A recipe for a custom panel pane...

    module_custompane_ctools_content_types()
                       +
    module_custompane_content_type_render()
                       +
   module_custompane_content_type_edit_form()
                       +
module_custompane_content_type_edit_form_submit()



  more information in the ctools_plugin_example module
Extending Panels: Layouts
   hook_panels_layouts()
  A recipe for a custom panel layout...

            layout_name.css
                    +
             layout_name.inc
                    +
          layout_name.tpl.php
                    +
            layout_name.png
Content Creation in Panels

  •   Panels “Content Types”:
      Not Just for CCK!

  •   Create Content:
      Images/Feeds/Embeds


             status:
  http://drupal.org/node/451928
Front Page Scheduling

•   Add Date Field to Panel
    Node Content Type

•   Create Custom Callback to
    Find Current Page

•   return node_view($node)!
                                                 status:
                               http://drupal.org/project/panels_scheduler
panels-pane.tpl.php
Variables available:
 * - $pane->type: the content type inside this pane
 * - $pane->subtype: the subtype, if applicable. If a view
it will be the view name; if a node it will be the nid, etc.
 * - $content->title: The title of the content
 * - $content->content: The actual content                         status:
 * - $content->links: Any associated links              http://drupal.org/node/583172
 * - $content->more: An optional 'more' link                  (now in Panels 3.1!)
 * - $content->admin_links: Administrative links
 * - $content->feeds: Any feed icons or associated with
the content

 Why This Matters?

 <div class="panel-pane panel-pane-<?php print $pane->type; ?>">
Node/% Overrides
•   Better Node View Control   •   The Power of Context

•   Customized Sidebars        •   Layout UI that Makes Sense
OG Panels

 •   OG + Panels = Great

 •   A model for how to
     have users manage
     groups


              status:
http://drupal.org/project/og_panels
Total Admin Control
•   Views 2 + Panels 3
    = Admin 5000

•   Flexible +
    Customizable

•   The Content
    Admin Solution

                    status:
    http://drupal.org/project/total_control
The Future Is Now
      released

More Related Content

PDF
Best practices in Drupal 7 (Views, Panels ...)
PDF
User Guide
PDF
Virtualizing Microsoft SQL Server 2008 with Citrix XenServer
PDF
C:\fakepath\buildingblock bbmanifest
PDF
Web Host Reseller Program
ODT
Test ss by nandudil12345
PPT
Testnewx123
PDF
UnBBayes Plugin Framework
Best practices in Drupal 7 (Views, Panels ...)
User Guide
Virtualizing Microsoft SQL Server 2008 with Citrix XenServer
C:\fakepath\buildingblock bbmanifest
Web Host Reseller Program
Test ss by nandudil12345
Testnewx123
UnBBayes Plugin Framework

Similar to Panels 3.0: The Powers Of Chaos Magic (20)

PDF
Panels - Creating Multi Column Layouts Through The Web - Drupal Camp Vienna 2...
PDF
10 steps to becoming a panels pro
PPT
Drupal Panels: An Introduction
PDF
Drupal for Webmasters by Brett Baker
KEY
Leveraging the Chaos tool suite for module development
PPTX
The panels family
PDF
Advanced Layout Techniques @ CMSExpo
ODP
Drupal - Blocks vs Context vs Panels
PDF
Absolute Beginners Guide to Drupal
PPTX
Panels 3 for designers
PDF
Presentation Drupal Content Management Framework
KEY
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
PPTX
4.content mgmt
PPT
Drupal: Content Management and Community for your Library
PDF
Building A Tasty Backend
PDF
New Adventures in Drupal Theming
PDF
DrupalCon Austin - Absolute Beginner's Guide to Drupal
PPTX
Panels - Drupal Gov Con 2016
PDF
Extending CMS Made Simple
PPTX
Marky Markup and the Funky Bunch
Panels - Creating Multi Column Layouts Through The Web - Drupal Camp Vienna 2...
10 steps to becoming a panels pro
Drupal Panels: An Introduction
Drupal for Webmasters by Brett Baker
Leveraging the Chaos tool suite for module development
The panels family
Advanced Layout Techniques @ CMSExpo
Drupal - Blocks vs Context vs Panels
Absolute Beginners Guide to Drupal
Panels 3 for designers
Presentation Drupal Content Management Framework
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
4.content mgmt
Drupal: Content Management and Community for your Library
Building A Tasty Backend
New Adventures in Drupal Theming
DrupalCon Austin - Absolute Beginner's Guide to Drupal
Panels - Drupal Gov Con 2016
Extending CMS Made Simple
Marky Markup and the Funky Bunch
Ad

More from Chapter Three (6)

PDF
Drupal as a winning Web Platform
PDF
Pantheon @ Drupal Down Under
PDF
Enterprise Drupal
PDF
A Match Made In The Cloud
PDF
High Performance Drupal
PDF
Drupal In The Cloud
Drupal as a winning Web Platform
Pantheon @ Drupal Down Under
Enterprise Drupal
A Match Made In The Cloud
High Performance Drupal
Drupal In The Cloud
Ad

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Modernizing your data center with Dell and AMD
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Big Data Technologies - Introduction.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Teaching material agriculture food technology
Spectral efficient network and resource selection model in 5G networks
Modernizing your data center with Dell and AMD
Empathic Computing: Creating Shared Understanding
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Reach Out and Touch Someone: Haptics and Empathic Computing
Unlocking AI with Model Context Protocol (MCP)
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Big Data Technologies - Introduction.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Building Integrated photovoltaic BIPV_UPV.pdf
Network Security Unit 5.pdf for BCA BBA.
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Review of recent advances in non-invasive hemoglobin estimation
Diabetes mellitus diagnosis method based random forest with bat algorithm
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Panels 3.0: The Powers Of Chaos Magic

  • 1. Panels 3: The Power of Chaos Magic Matt Cheney October 17th, 2009 BADCamp 2009
  • 2. in a galaxy far far away.. Panels 2 - Tips and Tricks (BADCamp 08)
  • 3. Panels is our Best Hope • Marshall Content • Drag & Drop Layout • Configurable in the UI • Views 2 + CCK Integration • Killer API • Exportable Elements “what do you want in your CMS?”
  • 6. A Little History.... Panels 1 (5.x)
  • 7. A Little History.... Panels 2 (5.x) Panels 2 (6.x) the long road...
  • 8. A Little History.... panels 3.0 released 9.19.09
  • 9. The Panels Paradigm No Blocks Every Page is a Panel
  • 10. A Tour of Panels Mini Panels Panel Pages OG Panel Nodes Layouts Views 2 Node Overrides Field Placement Panel Styling Blocks
  • 11. Panels and Chaos Tools Chaos Tools a shared suite of APIs and tools to allow for wizardly development drupal.org/project/ctools Panels a system of layout and pane control to create your website drupal.org/project/panels
  • 12. The Panels/CTools API /** * Implementation of hook_ctools_plugin_directory() to let * the system know we implement task and task_handler plugins. */ function module_name_ctools_plugin_directory($module, $plugin) { return 'plugins/' . $plugin; } module/plugins/content_types/ module/plugins/layouts/ module/plugins/contexts/ module/plugins/arguments/ module/plugins/tasks/
  • 13. Extending Panels: Panes hook_ctools_content_types() A recipe for a custom panel pane... module_custompane_ctools_content_types() + module_custompane_content_type_render() + module_custompane_content_type_edit_form() + module_custompane_content_type_edit_form_submit() more information in the ctools_plugin_example module
  • 14. Extending Panels: Layouts hook_panels_layouts() A recipe for a custom panel layout... layout_name.css + layout_name.inc + layout_name.tpl.php + layout_name.png
  • 15. Content Creation in Panels • Panels “Content Types”: Not Just for CCK! • Create Content: Images/Feeds/Embeds status: http://drupal.org/node/451928
  • 16. Front Page Scheduling • Add Date Field to Panel Node Content Type • Create Custom Callback to Find Current Page • return node_view($node)! status: http://drupal.org/project/panels_scheduler
  • 17. panels-pane.tpl.php Variables available: * - $pane->type: the content type inside this pane * - $pane->subtype: the subtype, if applicable. If a view it will be the view name; if a node it will be the nid, etc. * - $content->title: The title of the content * - $content->content: The actual content status: * - $content->links: Any associated links http://drupal.org/node/583172 * - $content->more: An optional 'more' link (now in Panels 3.1!) * - $content->admin_links: Administrative links * - $content->feeds: Any feed icons or associated with the content Why This Matters? <div class="panel-pane panel-pane-<?php print $pane->type; ?>">
  • 18. Node/% Overrides • Better Node View Control • The Power of Context • Customized Sidebars • Layout UI that Makes Sense
  • 19. OG Panels • OG + Panels = Great • A model for how to have users manage groups status: http://drupal.org/project/og_panels
  • 20. Total Admin Control • Views 2 + Panels 3 = Admin 5000 • Flexible + Customizable • The Content Admin Solution status: http://drupal.org/project/total_control
  • 21. The Future Is Now released