a recipe for flexible editing with drupal, panels, kalatheme and panopoly

34
A Recipe for Flexible Editing Carson Black carsonblack @carsonblack www.carsonblack.com Thursday, May 22, 14

Upload: carson-black

Post on 07-May-2015

3.579 views

Category:

Technology


1 download

DESCRIPTION

In this presentation I demoed a way to use a combination of panels, panelizer, ipe, kalatheme bootstrap and some borrowed panopoly magic mixed with a little bit of custom code to acheive some nice content editor interfaces in a flexible, yet controlled, way.

TRANSCRIPT

Page 1: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

A Recipe for Flexible Editing

Carson Black

carsonblack

@carsonblack

www.carsonblack.com

Thursday, May 22, 14

Page 2: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Goals

• Flexibility

• Freedom under a benevolent dictator (developer)

• Structured Content

• Decoration

• Configuration in code

Thursday, May 22, 14

Page 3: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Demo

Thursday, May 22, 14

Page 4: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Prep and Pickup

• Prep

• Things that can be done in advance

• Pickup

• What you do when it’s time to put it together

Thursday, May 22, 14

Page 5: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Prep: Core vs. Panopoly Distro

• Core

• Plus modules

• Panopoly

• Most of what you need

• Plus maybe more than you really want...

Thursday, May 22, 14

Page 6: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Prep: Panels More flexible layout and content placement options

Thursday, May 22, 14

Page 7: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Panelizer

Default layout per bundle

Customize layout and “decoration” per node page

No overridden Features

Allowed content

Thursday, May 22, 14

Page 8: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Panels IPE

In-place editing of page content

Custom layout selection

Thursday, May 22, 14

Page 9: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Panopoly Magic

Customizes IPE Experience

Previews

Customize Views in Panels

Editing field content in IPE

Thursday, May 22, 14

Page 10: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Panopoly Theme Responsive Panels Layouts

Thursday, May 22, 14

Page 11: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Prep: Kalatheme

• Twitter Bootstrap

• Bootstrap importer and subtheme generator

• Panels instead of blocks

• Responsive

• Pane and region style plugins

• Responsive tools

• LESS / SASS

Thursday, May 22, 14

Page 12: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Demo

Thursday, May 22, 14

Page 13: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

• Views module and obvious dependencies

• Views Content Panes

• Views Autocomplete Filters

Prep: Views

Thursday, May 22, 14

Page 14: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Prep: Custom Module(s)

• Custom View Modes for a content type

• Custom node templates (tpl.php) per view mode

• Default view mode selected

• Form alterations (Kalacustomize -> Custom) for field labels

Thursday, May 22, 14

Page 15: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Prep: Custom Module - Architecture

Thursday, May 22, 14

Page 16: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Prep: Custom Module - install

Basically, Set the weight of this module higher than Panopoly Magic module

Thursday, May 22, 14

Page 17: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Prep: Custom Module - hook_entity_info_alter()

Thursday, May 22, 14

Page 18: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Prep: Custom Module - hook_preprocess_node()

Thursday, May 22, 14

Page 19: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Prep: Custom Module - hook_theme_registry_alter()

Thursday, May 22, 14

Page 20: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Prep: Custom Module - hook_form_alter()’s

Thursday, May 22, 14

Page 21: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Prep: Custom Module - Node Templates

Thursday, May 22, 14

Page 22: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Pickup: Set Pane and Region Styles

Thursday, May 22, 14

Page 23: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Pickup: Create Content Pane Views

Thursday, May 22, 14

Page 24: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Pickup: Create Content Pane Views

Thursday, May 22, 14

Page 25: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Pickup: Create Content Pane Views

Thursday, May 22, 14

Page 26: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Pickup: Create Content Pane Views

Thursday, May 22, 14

Page 27: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Pickup: Create Content Pane Views

Thursday, May 22, 14

Page 28: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Pickup: Panelizer Allowed Content Settings

Thursday, May 22, 14

Page 29: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Pickup: Panelizer Default Panel Settings

Thursday, May 22, 14

Page 30: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Pickup: Get Crazy! ;-)

Thursday, May 22, 14

Page 31: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Pickup: Panopoly’s “Magical” Widgets

Thursday, May 22, 14

Page 32: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Goals Achieved?

• Flexibility

• Freedom under a benevolent dictator (developer)

• Content Structure vs. Decoration

• Configuration in code (Features friendly)

Thursday, May 22, 14

Page 33: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Thank You!

Carson Black

carsonblack

@carsonblack

www.carsonblack.com

Thursday, May 22, 14

Page 34: A Recipe for Flexible Editing with Drupal, Panels, Kalatheme and Panopoly

Thursday, May 22, 14