Panels – Drupal Layouts using Panels – Blocks



Panels – Drupal Layouts using Panels – Blocks

0 0


drupal-panles-slides

Slides about Panels

On Github naughtydavid / drupal-panles-slides

Panels

Drupal Layouts using Panels

Arjun Raj @rajarju

Layouts in Drupal

  • Drupal Blocks
  • Context
  • Panels

How Drupal Generates a Page

  • Bootstrap
  • Menu
  • Hooks and Modules
  • Themes

Blocks

Blocks

  • Blocks Admin
  • Regions
  • Block Settings

Limitations

  • Limitations with Selection
  • Performance
  • 1 Block in 1 Region

Context

Context

Development Seed

Context

  • Displays Blocks based on Context of the page
  • Conditions and Reactions

Context

Context Lets you manipulate

  • Menu
  • Blocks
  • Other Modules
  • Theme

Context

  • Multiple Conditions (Rules)
  • And or Logic (Combinations)
  • Same Block in Multiple Regions

Context

  • Regions are provided by Themes
  • Users cannot re-arrange blocks
  • Limitations selecting Layouts
  • Performance ?

Panels

Panels

Earl Miles @merlinofchaos

(Views, Ctools)

Panels

  • Pane
  • Layouts
  • Layout Builder
  • Panel Pages
  • Panel Overrides
  • Variants
  • Conditions
  • Context
  • Passing information between Panes
  • Pane Styles

Panels

  • Path driven
  • Handles entire Content area
  • Can disable Regions
  • Caching
  • Custom Layouts

Panels IPE

In Place Editor

Blocks vs Context vs Panels

Blocks

  • Loops through block_list each template region
  • Regions provided by Theme
  • Check condition for each block
  • Sort Blocks in Each region

Context

  • Conditions and Reactions
  • Checks for Context of the page
  • Load Blocks/Menu/Views based on Context

Panels

Panels and Performance

Panels

  • Knows all Panes that go in Each panel
  • Picks and places the Panes

Use Case

Blocks

  • Simple

Context

  • Advanced
  • Export/Import
  • Features Integration

Panels

  • Multiple Layouts
  • Site Builders
  • Layouts without Code
  • Tighter Integration with Views
  • Features Integration

More on Panels

Extending Panels

  • Panels Everywhere
  • Panelizer
  • Custom Panel Layouts with c-tools plugins
  • Panopoly
  • Radix
  • Context Panels

Thank You

Arjun