Building a Full Site in Drupal 8 Alpha
![](http://photos-a.ak.instagram.com/hphotos-ak-xfa1/10261036_655853497796416_499047125_n.jpg)
Michael - Schnitzel
Head Technology Amazee Labs
![](http://www.amazeelabs.com/sites/default/files/styles/user_header_image/public/michael.png?itok=RA882w7n)
![](http://www.amazeelabs.com/themes/amazeelabs/logo.png)
Why?
- Learning by doing
-
Research about status of D8
-
Insanity
Process
- Designed in Photoshop
constantly checked for possibilities with Tech Team
February 2013 - March 2014
- Iterative Specification & Sitebuilding
Mid March - Mid April 2014
![](https://s3-eu-west-1.amazonaws.com/uploads-eu.hipchat.com/89090/651115/JNwaCipU7kTHfkK/amazee-labs-war-room.jpg)
-
Theming & Backend DevelopmentApril 2014
- Testing & Bugfixing
End April 2014
![](https://s3.amazonaws.com/media-p.slid.es/uploads/michaelschmid/images/450612/Report_-_Created_vs_Resolved_Issues_Report_-_Amazee.png)
Launch
29th April 2014
Sitebuilding
Panels!
- Completely missing
- Views in Views: Headers & Footers
- As less custom code as possible
- now: Page Manager
-
http://amazeelabs.com/en/services
Viewmodes
- Everything done with ViewModes
- Amazee Labs convention
- Caching!
- Panelizer also missing
- Display suite not enough flexibility
- Twig Template Files!
twig templates Process
-
Sitebuilder created Twig Files with Variables
![](https://s3.amazonaws.com/media-p.slid.es/uploads/michaelschmid/images/442264/_Users_Michael_git_amazeelabs-d8_themes_amazeelabs_templates_node_client_node--client-full_html_twig.jpg)
TWIG TEMPLATES PROCESS
2. Themer changes for his needs
![](https://s3.amazonaws.com/media-p.slid.es/uploads/michaelschmid/images/442266/node--client-full_html_twig_-_amazeelabs-d8_-____git_amazeelabs-d8_.jpg)
Theming
Theme?
- No Base Themes yet
- None necessary
- CSS & Grids fully custom (SUSY 2)
- HTML 5 in core
TWIG
-
<3
-
Hidden Superpower: Extends & Blocks
- Accessing only value from Field
![](https://s3.amazonaws.com/media-p.slid.es/uploads/michaelschmid/images/442274/block--custom-block--teaser-list-link_html_twig_-_amazeelabs-d8_-____git_amazeelabs-d8_.jpg)
Configuration management
Configuration management
- no GIT integration out of the box
- Process
- Config directory in sites/default/config
- local dev:
drush config-export config --add -y git commit -m "my config changes" git push
- dev site:
git pull drush config-import config
updates
Head 2 Head
-
Backup
- Git Pull, Git merge
- Visiting Page
- WSOD
- Step debug
- Read Change Notices
- Fix, DB Adaptions
- Step debug
- Read Change Notices
- Fix, DB Adaptions
- Step debug
- Read Change Notices
- ....
Head 2 Head
- Change Notices
- Step Debug
- Compare DB with new installed Site
- Compare Stacktrace with new installed Site
The best of all
#2232651 Consolidate system.module + system.theme + system.theme.disabled into core.extension config
Error:
Fatal error: Call to undefined function system_region_list() in /home/vagrant/public_html/core/includes/theme.inc on line 2109
Fix: Comparing my Config Table with New Site Config Table
![](https://s3.amazonaws.com/media-p.slid.es/uploads/michaelschmid/images/442348/Consolidate_system_module___system_theme___system_theme_disabled_into_core_extension_config___2228921____Drupal_org.jpg)
Multilingual
Multilingual
- arg() contains language path prefix
- Field Label translations too hard cached
- Entity Reference Load looses Language Info
Migration
- Migrate Module not yet ready
- Custom Built Migration
- D7 Services Module (JSON)
- D8 Custom Migration inspired by Migrate
- Only Blogposts & Blogpost Authors migrated
Backend
Development
Backend Development
- Examples found via Google mostly broken now
- Example Module sometimes also
- Took Easy Modules from Core
- Debugging hard because of Theme Render Cache
now fixed!
Resumé
it works!
A lot of d.o issues created
Developers & Themers
don't wanna go back to D7
don't wanna go back to D7
Building a Full Site in Drupal 8 Alpha Amsterdam
By Michael Schmid
Building a Full Site in Drupal 8 Alpha Amsterdam
- 1,964