SlideShare uma empresa Scribd logo
1 de 42
Baixar para ler offline
©2016 Acquia Inc. — Confidential and Proprietary
D8 Lightning: Speedrun!
Build a Website with Panels, Media, and More in 45 Minutes
http://lightning.acquia.com
What is Lightning?
The Drupal 8 Distribution
for Enterprise Authoring
Enable developers to build great
enterprise authoring experiences
for their editorial teams with D8
Persona
Site
Builder
Persona
Content
Author
Persona
Site
Designer
Persona
Developer
Integrations TestingSecurity
Layout Workflow Preview Media
What is Speedrun?
Our site’s requirements
● Store references to tweets, which
can be promoted to the front page
● Ability to move content into
“needs review”
● Authors and editors must be able to
control content layout
Time to Prepare!
Content modeling
● Describe all the fields in each entity type
● Describe relationships with other entities
● Describe display configuration -- not design
● What does the user see?
● Refine iteratively alongside wireframes
Media
Media handling
● Media Entity module defines an abstract entity type for
storing media
● Consistent handling of social media and digital media
● != File Entity, because media might not be a file
● Media entities are standard content entities
● Fieldable / Revisionable / Views integration
Workflow
Content workflow
● Drupal’s default workflow is
published or unpublished
● A boolean workflow doesn’t meet the
needs of editorial teams
● Workbench Moderation lets you
configure permissions for
transitions between arbitrary states
● Only transitions that CAN be applied
will be offered
Layout
Layout control
Level 1 of 4: Drupal Core
Layout control
Level 1 of 4: Drupal Core
● You can choose which fields to show,
configure them and reorder them
● No concept of regions
● If you need to lay things out, you probably
need themer help
Layout control
Level 2 of 4: Single layout
● Uses Panels, Panelizer, and Layout Plugin
● Retains core functionality
● Has concept of regions
● Can display more than just entity fields
● Don’t need a themer to make layout changes
● Includes additional Panels-ey goodness (contexts, etc.)
Theme Wizardry: custom layouts
● Layout Plugin: the standardized solution for custom layouts
● Very familiar to D7 themers
● At a minimum, layout plugins are YAML + Twig + CSS
● In the simplest case, they’re a set of named regions
● Because they are plugins, they can have logic behind them
(configurable layouts!)
Layout control
Level 3 of 4: Multi-layout
● What’s better than one panelized layout? Many panelized layouts!
● Choose one to be the default
● Editors can choose a layout, or stick with the default
● Changes will flow downstream
● Still don’t need any help from a themer
Layout control
Level 4 of 4: Panels IPE
Layout control
Level 4 of 4: Panels IPE
● Full drag and drop control
● Begin from a preconfigured (possibly empty) layout and
customize it on a one-off basis
● Instant preview of everything -- nearly WYSIWYG
● STILL don’t need a themer!
● And that, finally, is enough power.
Live Demo in Progress
What problems did we solve?
● MEDIA: Media can be anything, can be embedded anywhere, can be molded
to fit business requirements
● LAYOUT: Layouts can be built visually by non-techs, and custom layouts can
be used easily by authors
● WORKFLOW: Can build our own workflow according to business needs, and
it must be followed
● PREVIEW: Can see exactly what a collection of changes will look like before
the users do
©2016 Acquia Inc. — Confidential and Proprietary
THANK YOU!
@djphenaproxima / phenaproxima
@balsama / balsama
@commercejohn / johnkennedy
http://lightning.acquia.com/
http://pokemondb.net/pokedex
©2016 Acquia Inc. — Confidential and Proprietary
Extra
Let’s build some stuff!!!
● Article with a layout and embedded media
● A training program, which can switch between
layouts
● The home page (a full-bleed landing page with
completely arbitrary layout)
● Promote a tweet to the home page
Theme Wizardry: full-bleed regions
● Tricky to do in Drupal OOTB. How did we do it?
● Created a new theme region that sits outside the main
page container
● Created custom layouts that supported full-bleed
(bundled ones may not work)
Theme Wizardry: preprocess functions
● Basically ring 0*; any sorcery is possible here
● You can move content from one place to another
● You can gather contextual information that is unavailable
to the template and use it to influence the output
● Best used for slight, context-sensitive modifications (e.g.
adding a CSS class or style if a condition is true)
* https://en.wikipedia.org/wiki/Protection_ring
Lightning Media
● Built on Media Entity and its related ecosystem
● All media is generic and reusable, and supports arbitrary metadata
● Reusable via the incredibly flexible Entity Browser module
● Can embed any entity into rich text editors using Embed and Entity
Embed
● Lightning provides sane default configuration for these modules, but
you can override
Example: Tweets
● Need to store tweets for future reuse
● Need to display tweets in a view
● Need a way to mark choice tweets as
“promoted to front page”
● Want to embed tweets into other content as
needed
Lightning Layout
● Based on the best-of-breed layout solutions for Drupal (in our opinion)
● Goal is to be intuitive and visual
● Control of layout should be in the hands of authors
● Built on top of a common layout system (Layout Plugin), slated for
core
● Panelizer: create reusable layouts for entities in many different
contexts
● Panels IPE: A visual layout builder with instant preview
Example:
Landing Page + Panelizer Choices
● Need to visually create attractive landing
pages from pre-built pieces
● Certain content must support more than one
layout, the choice of which is up to authors
● Need custom layouts in order to support
full-bleed pages
Lightning Workflow
● Improves on Drupal’s editorial workflow process
● Based upon work that is now in core
● Define arbitrary “moderation states” and transitions
between them
● Transitions are a true directional workflow, not just
publish/unpublish
● Works with any kind of content entity
Example: Editorial Workflow
● Blog content type
● Must be submitted for legal review before
publication
● Once in legal review, must be published or
sent back to draft
Lightning Preview
● Based on core Workflow Initiative
● Introduces the concept of workspaces
● Works by separating all content entities into semi-isolated
silos
● Conflicts can be tracked and resolved (soon)
● Preview everything exactly as it will appear in the live site
HERE BE DRAGONS
This is currently experimental

Mais conteúdo relacionado

Mais procurados

10 New Things You Can Do with Drupal 8 Out-of-the-Box
10 New Things You Can Do with Drupal 8 Out-of-the-Box10 New Things You Can Do with Drupal 8 Out-of-the-Box
10 New Things You Can Do with Drupal 8 Out-of-the-Box
Suzanne Dergacheva
 
Drupal 6 to 7 migration guide
Drupal 6 to 7 migration guideDrupal 6 to 7 migration guide
Drupal 6 to 7 migration guide
Ebizon
 
Preventing Drupal Headaches: Establishing Flexible File Paths From The Start
Preventing Drupal Headaches: Establishing Flexible File Paths From The StartPreventing Drupal Headaches: Establishing Flexible File Paths From The Start
Preventing Drupal Headaches: Establishing Flexible File Paths From The Start
Acquia
 

Mais procurados (20)

Drupal Best Practices
Drupal Best PracticesDrupal Best Practices
Drupal Best Practices
 
Drupal 8: Most common beginner mistakes
Drupal 8: Most common beginner mistakesDrupal 8: Most common beginner mistakes
Drupal 8: Most common beginner mistakes
 
Blisstering drupal module development ppt v1.2
Blisstering drupal module development ppt v1.2Blisstering drupal module development ppt v1.2
Blisstering drupal module development ppt v1.2
 
Beginner's guide to drupal
Beginner's guide to drupalBeginner's guide to drupal
Beginner's guide to drupal
 
Migrate for Site Builders from MidCamp 2016
Migrate for Site Builders from MidCamp 2016Migrate for Site Builders from MidCamp 2016
Migrate for Site Builders from MidCamp 2016
 
10 New Things You Can Do with Drupal 8 Out-of-the-Box
10 New Things You Can Do with Drupal 8 Out-of-the-Box10 New Things You Can Do with Drupal 8 Out-of-the-Box
10 New Things You Can Do with Drupal 8 Out-of-the-Box
 
Media handling in Drupal (Drupalcamp Leuven 2013)
Media handling in Drupal (Drupalcamp Leuven 2013)Media handling in Drupal (Drupalcamp Leuven 2013)
Media handling in Drupal (Drupalcamp Leuven 2013)
 
Drupal developers
Drupal developersDrupal developers
Drupal developers
 
Deployer - Deployment tool for PHP
Deployer - Deployment tool for PHPDeployer - Deployment tool for PHP
Deployer - Deployment tool for PHP
 
Drupal upgrades and migrations. BAD Camp 2013 version
Drupal upgrades and migrations. BAD Camp 2013 versionDrupal upgrades and migrations. BAD Camp 2013 version
Drupal upgrades and migrations. BAD Camp 2013 version
 
Using Features
Using FeaturesUsing Features
Using Features
 
Beginners Guide to Drupal
Beginners Guide to DrupalBeginners Guide to Drupal
Beginners Guide to Drupal
 
Conference Migrate to Drupal 8 by Leon Cros at Drupal Developer Days 2015 in ...
Conference Migrate to Drupal 8 by Leon Cros at Drupal Developer Days 2015 in ...Conference Migrate to Drupal 8 by Leon Cros at Drupal Developer Days 2015 in ...
Conference Migrate to Drupal 8 by Leon Cros at Drupal Developer Days 2015 in ...
 
Top 8 Improvements in Drupal 8
Top 8 Improvements in Drupal 8Top 8 Improvements in Drupal 8
Top 8 Improvements in Drupal 8
 
Drupal 6 to 7 migration guide
Drupal 6 to 7 migration guideDrupal 6 to 7 migration guide
Drupal 6 to 7 migration guide
 
Drupal 8 - A Brief Introduction
Drupal 8 - A Brief IntroductionDrupal 8 - A Brief Introduction
Drupal 8 - A Brief Introduction
 
Drupal Migrations in 2018
Drupal Migrations in 2018Drupal Migrations in 2018
Drupal Migrations in 2018
 
#D8CX: Upgrade your modules to Drupal 8 (Part 1 and 2)
#D8CX: Upgrade your modules to Drupal 8 (Part 1 and 2)#D8CX: Upgrade your modules to Drupal 8 (Part 1 and 2)
#D8CX: Upgrade your modules to Drupal 8 (Part 1 and 2)
 
Drupal 8 Deep Dive: Plugin System
Drupal 8 Deep Dive: Plugin SystemDrupal 8 Deep Dive: Plugin System
Drupal 8 Deep Dive: Plugin System
 
Preventing Drupal Headaches: Establishing Flexible File Paths From The Start
Preventing Drupal Headaches: Establishing Flexible File Paths From The StartPreventing Drupal Headaches: Establishing Flexible File Paths From The Start
Preventing Drupal Headaches: Establishing Flexible File Paths From The Start
 

Semelhante a Speedrun: Build a Website with Panels, Media, and More in 45 Minutes

Drupal content editor flexibility
Drupal content editor flexibilityDrupal content editor flexibility
Drupal content editor flexibility
hernanibf
 
Spark: Authoring Experience++ in Drupal 7, 8, and Beyond
Spark: Authoring Experience++ in Drupal 7, 8, and BeyondSpark: Authoring Experience++ in Drupal 7, 8, and Beyond
Spark: Authoring Experience++ in Drupal 7, 8, and Beyond
Angela Byron
 
WordPress 101 Saturday Session
WordPress 101 Saturday SessionWordPress 101 Saturday Session
WordPress 101 Saturday Session
pamselle
 

Semelhante a Speedrun: Build a Website with Panels, Media, and More in 45 Minutes (20)

Drupal content editor flexibility
Drupal content editor flexibilityDrupal content editor flexibility
Drupal content editor flexibility
 
Developing Custom WordPress Themes for Clients
Developing Custom WordPress Themes for ClientsDeveloping Custom WordPress Themes for Clients
Developing Custom WordPress Themes for Clients
 
Drupal training-1-in-mumbai
Drupal training-1-in-mumbaiDrupal training-1-in-mumbai
Drupal training-1-in-mumbai
 
[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
 
Hong Kong Drupal User Group - 2014 March 8th
Hong Kong Drupal User Group - 2014 March 8thHong Kong Drupal User Group - 2014 March 8th
Hong Kong Drupal User Group - 2014 March 8th
 
Choosing Drupal as your Content Management Framework
Choosing Drupal as your Content Management FrameworkChoosing Drupal as your Content Management Framework
Choosing Drupal as your Content Management Framework
 
Building A Tasty Backend
Building A Tasty BackendBuilding A Tasty Backend
Building A Tasty Backend
 
Spark: Authoring Experience++ in Drupal 7, 8, and Beyond
Spark: Authoring Experience++ in Drupal 7, 8, and BeyondSpark: Authoring Experience++ in Drupal 7, 8, and Beyond
Spark: Authoring Experience++ in Drupal 7, 8, and Beyond
 
Becoming A Drupal Master Builder
Becoming A Drupal Master BuilderBecoming A Drupal Master Builder
Becoming A Drupal Master Builder
 
WordPress 101 Saturday Session
WordPress 101 Saturday SessionWordPress 101 Saturday Session
WordPress 101 Saturday Session
 
Drupal in 5mins + Previewing Drupal 8.x
Drupal in 5mins + Previewing Drupal 8.xDrupal in 5mins + Previewing Drupal 8.x
Drupal in 5mins + Previewing Drupal 8.x
 
Design Summit - Technology Vision - Oleg Barenboim and Jason Frey
Design Summit - Technology Vision - Oleg Barenboim and Jason FreyDesign Summit - Technology Vision - Oleg Barenboim and Jason Frey
Design Summit - Technology Vision - Oleg Barenboim and Jason Frey
 
Implementing a Symfony Based CMS in a Publishing Company
Implementing a Symfony Based CMS in a Publishing CompanyImplementing a Symfony Based CMS in a Publishing Company
Implementing a Symfony Based CMS in a Publishing Company
 
Joomla X Overview
Joomla X OverviewJoomla X Overview
Joomla X Overview
 
Starting a Drupal 8 Project? Let’s do a Technical Discovery - DrupalConAsia 2...
Starting a Drupal 8 Project? Let’s do a Technical Discovery - DrupalConAsia 2...Starting a Drupal 8 Project? Let’s do a Technical Discovery - DrupalConAsia 2...
Starting a Drupal 8 Project? Let’s do a Technical Discovery - DrupalConAsia 2...
 
Improving drupals cex and ax
Improving drupals cex and axImproving drupals cex and ax
Improving drupals cex and ax
 
Android Modularization
Android ModularizationAndroid Modularization
Android Modularization
 
Drupal 8, tricks and tips learned from the first 6 months
Drupal 8, tricks and tips learned from the first 6 monthsDrupal 8, tricks and tips learned from the first 6 months
Drupal 8, tricks and tips learned from the first 6 months
 
WordPress: After The Install
WordPress: After The InstallWordPress: After The Install
WordPress: After The Install
 
What in store in drupal 8
What in store in drupal 8 What in store in drupal 8
What in store in drupal 8
 

Mais de Acquia

Taking Your Multi-Site Management at Scale to the Next Level
Taking Your Multi-Site Management at Scale to the Next LevelTaking Your Multi-Site Management at Scale to the Next Level
Taking Your Multi-Site Management at Scale to the Next Level
Acquia
 

Mais de Acquia (20)

Acquia_Adcetera Webinar_Marketing Automation.pdf
Acquia_Adcetera Webinar_Marketing Automation.pdfAcquia_Adcetera Webinar_Marketing Automation.pdf
Acquia_Adcetera Webinar_Marketing Automation.pdf
 
Acquia Webinar Deck - 9_13 .pdf
Acquia Webinar Deck - 9_13 .pdfAcquia Webinar Deck - 9_13 .pdf
Acquia Webinar Deck - 9_13 .pdf
 
Taking Your Multi-Site Management at Scale to the Next Level
Taking Your Multi-Site Management at Scale to the Next LevelTaking Your Multi-Site Management at Scale to the Next Level
Taking Your Multi-Site Management at Scale to the Next Level
 
CDP for Retail Webinar with Appnovation - Q2 2022.pdf
CDP for Retail Webinar with Appnovation - Q2 2022.pdfCDP for Retail Webinar with Appnovation - Q2 2022.pdf
CDP for Retail Webinar with Appnovation - Q2 2022.pdf
 
May Partner Bootcamp 2022
May Partner Bootcamp 2022May Partner Bootcamp 2022
May Partner Bootcamp 2022
 
April Partner Bootcamp 2022
April Partner Bootcamp 2022April Partner Bootcamp 2022
April Partner Bootcamp 2022
 
How to Unify Brand Experience: A Hootsuite Story
How to Unify Brand Experience: A Hootsuite Story How to Unify Brand Experience: A Hootsuite Story
How to Unify Brand Experience: A Hootsuite Story
 
Using Personas to Guide DAM Results: How Life Time Pumped Up Their UX and CX
Using Personas to Guide DAM Results: How Life Time Pumped Up Their UX and CXUsing Personas to Guide DAM Results: How Life Time Pumped Up Their UX and CX
Using Personas to Guide DAM Results: How Life Time Pumped Up Their UX and CX
 
Improve Code Quality and Time to Market: 100% Cloud-Based Development Workflow
Improve Code Quality and Time to Market: 100% Cloud-Based Development WorkflowImprove Code Quality and Time to Market: 100% Cloud-Based Development Workflow
Improve Code Quality and Time to Market: 100% Cloud-Based Development Workflow
 
September Partner Bootcamp
September Partner BootcampSeptember Partner Bootcamp
September Partner Bootcamp
 
August partner bootcamp
August partner bootcampAugust partner bootcamp
August partner bootcamp
 
July 2021 Partner Bootcamp
July  2021 Partner BootcampJuly  2021 Partner Bootcamp
July 2021 Partner Bootcamp
 
May Partner Bootcamp
May Partner BootcampMay Partner Bootcamp
May Partner Bootcamp
 
DRUPAL 7 END OF LIFE IS NEAR - MIGRATE TO DRUPAL 9 FAST AND EASY
DRUPAL 7 END OF LIFE IS NEAR - MIGRATE TO DRUPAL 9 FAST AND EASYDRUPAL 7 END OF LIFE IS NEAR - MIGRATE TO DRUPAL 9 FAST AND EASY
DRUPAL 7 END OF LIFE IS NEAR - MIGRATE TO DRUPAL 9 FAST AND EASY
 
Work While You Sleep: The CMO’s Guide to a 24/7/365 Lead Machine
Work While You Sleep: The CMO’s Guide to a 24/7/365 Lead MachineWork While You Sleep: The CMO’s Guide to a 24/7/365 Lead Machine
Work While You Sleep: The CMO’s Guide to a 24/7/365 Lead Machine
 
Acquia webinar: Leveraging Drupal to Bury Your Sales Team In B2B Leads
Acquia webinar: Leveraging Drupal to Bury Your Sales Team In B2B LeadsAcquia webinar: Leveraging Drupal to Bury Your Sales Team In B2B Leads
Acquia webinar: Leveraging Drupal to Bury Your Sales Team In B2B Leads
 
April partner bootcamp deck cookieless future
April partner bootcamp deck  cookieless futureApril partner bootcamp deck  cookieless future
April partner bootcamp deck cookieless future
 
How to enhance cx through personalised, automated solutions
How to enhance cx through personalised, automated solutionsHow to enhance cx through personalised, automated solutions
How to enhance cx through personalised, automated solutions
 
DRUPAL MIGRATIONS AND DRUPAL 9 INNOVATION: HOW PAC-12 DELIVERED DIGITALLY FOR...
DRUPAL MIGRATIONS AND DRUPAL 9 INNOVATION: HOW PAC-12 DELIVERED DIGITALLY FOR...DRUPAL MIGRATIONS AND DRUPAL 9 INNOVATION: HOW PAC-12 DELIVERED DIGITALLY FOR...
DRUPAL MIGRATIONS AND DRUPAL 9 INNOVATION: HOW PAC-12 DELIVERED DIGITALLY FOR...
 
Customer Experience (CX): 3 Key Factors Shaping CX Redesign in 2021
Customer Experience (CX): 3 Key Factors Shaping CX Redesign in 2021Customer Experience (CX): 3 Key Factors Shaping CX Redesign in 2021
Customer Experience (CX): 3 Key Factors Shaping CX Redesign in 2021
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Speedrun: Build a Website with Panels, Media, and More in 45 Minutes

  • 1. ©2016 Acquia Inc. — Confidential and Proprietary D8 Lightning: Speedrun! Build a Website with Panels, Media, and More in 45 Minutes http://lightning.acquia.com
  • 3. The Drupal 8 Distribution for Enterprise Authoring
  • 4. Enable developers to build great enterprise authoring experiences for their editorial teams with D8
  • 8.
  • 9. Our site’s requirements ● Store references to tweets, which can be promoted to the front page ● Ability to move content into “needs review” ● Authors and editors must be able to control content layout
  • 11. Content modeling ● Describe all the fields in each entity type ● Describe relationships with other entities ● Describe display configuration -- not design ● What does the user see? ● Refine iteratively alongside wireframes
  • 12.
  • 13.
  • 14. Media
  • 15. Media handling ● Media Entity module defines an abstract entity type for storing media ● Consistent handling of social media and digital media ● != File Entity, because media might not be a file ● Media entities are standard content entities ● Fieldable / Revisionable / Views integration
  • 17. Content workflow ● Drupal’s default workflow is published or unpublished ● A boolean workflow doesn’t meet the needs of editorial teams ● Workbench Moderation lets you configure permissions for transitions between arbitrary states ● Only transitions that CAN be applied will be offered
  • 19. Layout control Level 1 of 4: Drupal Core
  • 20. Layout control Level 1 of 4: Drupal Core ● You can choose which fields to show, configure them and reorder them ● No concept of regions ● If you need to lay things out, you probably need themer help
  • 21.
  • 22. Layout control Level 2 of 4: Single layout ● Uses Panels, Panelizer, and Layout Plugin ● Retains core functionality ● Has concept of regions ● Can display more than just entity fields ● Don’t need a themer to make layout changes ● Includes additional Panels-ey goodness (contexts, etc.)
  • 23. Theme Wizardry: custom layouts ● Layout Plugin: the standardized solution for custom layouts ● Very familiar to D7 themers ● At a minimum, layout plugins are YAML + Twig + CSS ● In the simplest case, they’re a set of named regions ● Because they are plugins, they can have logic behind them (configurable layouts!)
  • 24.
  • 25. Layout control Level 3 of 4: Multi-layout ● What’s better than one panelized layout? Many panelized layouts! ● Choose one to be the default ● Editors can choose a layout, or stick with the default ● Changes will flow downstream ● Still don’t need any help from a themer
  • 26.
  • 27. Layout control Level 4 of 4: Panels IPE
  • 28. Layout control Level 4 of 4: Panels IPE ● Full drag and drop control ● Begin from a preconfigured (possibly empty) layout and customize it on a one-off basis ● Instant preview of everything -- nearly WYSIWYG ● STILL don’t need a themer! ● And that, finally, is enough power.
  • 29. Live Demo in Progress
  • 30. What problems did we solve? ● MEDIA: Media can be anything, can be embedded anywhere, can be molded to fit business requirements ● LAYOUT: Layouts can be built visually by non-techs, and custom layouts can be used easily by authors ● WORKFLOW: Can build our own workflow according to business needs, and it must be followed ● PREVIEW: Can see exactly what a collection of changes will look like before the users do
  • 31. ©2016 Acquia Inc. — Confidential and Proprietary THANK YOU! @djphenaproxima / phenaproxima @balsama / balsama @commercejohn / johnkennedy http://lightning.acquia.com/ http://pokemondb.net/pokedex
  • 32. ©2016 Acquia Inc. — Confidential and Proprietary Extra
  • 33. Let’s build some stuff!!! ● Article with a layout and embedded media ● A training program, which can switch between layouts ● The home page (a full-bleed landing page with completely arbitrary layout) ● Promote a tweet to the home page
  • 34. Theme Wizardry: full-bleed regions ● Tricky to do in Drupal OOTB. How did we do it? ● Created a new theme region that sits outside the main page container ● Created custom layouts that supported full-bleed (bundled ones may not work)
  • 35. Theme Wizardry: preprocess functions ● Basically ring 0*; any sorcery is possible here ● You can move content from one place to another ● You can gather contextual information that is unavailable to the template and use it to influence the output ● Best used for slight, context-sensitive modifications (e.g. adding a CSS class or style if a condition is true) * https://en.wikipedia.org/wiki/Protection_ring
  • 36. Lightning Media ● Built on Media Entity and its related ecosystem ● All media is generic and reusable, and supports arbitrary metadata ● Reusable via the incredibly flexible Entity Browser module ● Can embed any entity into rich text editors using Embed and Entity Embed ● Lightning provides sane default configuration for these modules, but you can override
  • 37. Example: Tweets ● Need to store tweets for future reuse ● Need to display tweets in a view ● Need a way to mark choice tweets as “promoted to front page” ● Want to embed tweets into other content as needed
  • 38. Lightning Layout ● Based on the best-of-breed layout solutions for Drupal (in our opinion) ● Goal is to be intuitive and visual ● Control of layout should be in the hands of authors ● Built on top of a common layout system (Layout Plugin), slated for core ● Panelizer: create reusable layouts for entities in many different contexts ● Panels IPE: A visual layout builder with instant preview
  • 39. Example: Landing Page + Panelizer Choices ● Need to visually create attractive landing pages from pre-built pieces ● Certain content must support more than one layout, the choice of which is up to authors ● Need custom layouts in order to support full-bleed pages
  • 40. Lightning Workflow ● Improves on Drupal’s editorial workflow process ● Based upon work that is now in core ● Define arbitrary “moderation states” and transitions between them ● Transitions are a true directional workflow, not just publish/unpublish ● Works with any kind of content entity
  • 41. Example: Editorial Workflow ● Blog content type ● Must be submitted for legal review before publication ● Once in legal review, must be published or sent back to draft
  • 42. Lightning Preview ● Based on core Workflow Initiative ● Introduces the concept of workspaces ● Works by separating all content entities into semi-isolated silos ● Conflicts can be tracked and resolved (soon) ● Preview everything exactly as it will appear in the live site HERE BE DRAGONS This is currently experimental