Más contenido relacionado Similar a Blocks & layouts szeged (20) Blocks & layouts szeged6. THIS IS MY FAVORITE BLOCKS &
LAYOUTS RELATED MODULE
11. CHALLENGES
• Too much going on at admin/structure/block
• Can’t export block configuration
• Custom blocks depend on global “context” information
$node = node_load(arg(2));
• Content region vs. other regions
14. • Custom blocks
• Contextual views
• EVA
• and…
COMPOSITION PATTERNS
• Context
• Panels
• Display suite
• and…
20. DISPLAY SUITE
• Extends “manage display”
• Use custom layouts
• Define view modes
• Code fields, dynamic fields, block fields,
preprocess fields
21. PANELS
• The most successful layout solution for Drupal 7
• Huge ecosystem, includes Page manager,“Panels
Context”, Panelizer, In-place editor, CTools
content plug-ins, …
31. PANELS
• Panels everywhere (take over regions & page.tpl)
• Page manager existing pages
• Fieldable panels panes (embeddable entities)
• Field API Pane Editor (D8 in-place editing, Spark)
36. • Blocks are Plugins
• Object-oriented
• Extensible
• Annotation config
DRUPAL 8