SlideShare a Scribd company logo
1 ©2017 Acquia Inc. — Confidential and Proprietary
Dave Myburgh, Senior Engineer, Acquia Inc.
Creating a Custom
Bootstrap Subtheme for
Drupal 8
2 ©2017 Acquia Inc. — Confidential and Proprietary
Who Am I?
– Senior Engineer at Acquia, Inc. since 2011
– Maintain www.acquia.com, along with dev., engage.,
partners., and training.acquia.com
– Jack-of-all-trades: site building, front-end, back-end
– Started with Drupal 4.7, with theming mostly
– Learned PHP by hacking Drupal
3 ©2017 Acquia Inc. — Confidential and Proprietary
What We Will Cover
– Installing new Bootstrap theme
– Creating a subtheme
– Naming the subtheme
– Customizing subtheme
– Overriding Bootstrap variables (Sass)
– Template overrides
– Optional: Bootstrap Layouts (Panels/Display Suite)
4 ©2017 Acquia Inc. — Confidential and Proprietary
Installing Bootstrap
5 ©2017 Acquia Inc. — Confidential and Proprietary
Installation
– Get Bootstrap theme into your /theme folder
drush dl bootstrap, or download and decompress)
– Copy starterkits folder of your choice to /theme folder
cp –R bootstrap/starterkits/sass dcutah
– You should have this:
/themes/bootstrap
/themes/dcutah
– Note that less and sass starterkits will have compiler requirements
(node.js, ruby, compass, grunt, gulp, etc.)
6 ©2017 Acquia Inc. — Confidential and Proprietary
Rename & Edit Files
– THEMENAME.libraries.yml
– THEMENAME.starterkit.yml (edit)
– THEMENAME.theme
– config/install/THEMENAME.settings.yml
– config/schema/THEMENAME.schema.yml (edit)
– change THEMENAME to dcutah
– change starterkit to info
– edit files where noted to change info inside them
7 ©2017 Acquia Inc. — Confidential and Proprietary
Edit dcutah.info.yml
name: 'THEMETITLE'
description: 'Uses the Bootstrap framework Sass
source files and must be compiled (not for
beginners).'
libraries:
- 'THEMENAME/global-styling'
- 'THEMENAME/bootstrap-scripts'
8 ©2017 Acquia Inc. — Confidential and Proprietary
Edit config/schema/dcutah.schema.yml
THEMENAME.settings:
type: theme_settings
label: 'THEMETITLE settings'
9 ©2017 Acquia Inc. — Confidential and Proprietary
Install Bootstrap Source Files
– Only for less or sass starterkits
– Download and extract the 3.x Sass source files into your
theme folder, so that you have /themes/dcutah/bootstrap
https://github.com/twbs/bootstrap-sass/archive/v3.3.7.tar.gz
– cdn starterkit only has css/styles.css for you to override
default styles – easy!
10 ©2017 Acquia Inc. — Confidential and Proprietary
Compile Your Less/Sass Files
– Whatever compiler you’re using, you will need to compile
your source files.
– Make sure your dcutah.libraries.yml file is pointing to the
compiled stylesheet
I used compass without a config.rb file, so had to rename scss to
sass and change path in libraries.yml from css/style.css to
stylesheets/style.css
– Clear all caches!
11 ©2017 Acquia Inc. — Confidential and Proprietary
Enable Themes
– Enable Bootstrap AND DCUtah themes.
– Make DCUtah the default theme.
– You’ll now have a very boring looking Bootstrap theme
with some badly placed blocks.
– Go ahead and configure blocks and various settings to
your liking.
12 ©2017 Acquia Inc. — Confidential and Proprietary
Settings of Note
– Appearance settings for custom theme
– container-fluid (default: off)
– img-responsive (default: on)
– popovers and tooltips (default: on – performance!)
13 ©2017 Acquia Inc. — Confidential and Proprietary
Using Bootstrap
14 ©2017 Acquia Inc. — Confidential and Proprietary
Helper Modules
– Field Group (field_group)
– Field Formatter Class (field_formatter_class)
– Allow you to add wrappers and classes around fields so
that you can use the Bootstrap grid and other classes
– e.g. create a group with a class of “row” and put the
default Article node’s image and body inside it; add col-
sm-4 to image field and col-sm-8 to body field
15 ©2017 Acquia Inc. — Confidential and Proprietary
Customizing Your Theme
– scss/component/*.scss
– scss/_overrides.scss
– Contain existing styles that override Bootstrap or are
Drupal-specific
– Create new files in component for specific things – your
choice on structure e.g. _homepage.scss
– Add that file to _overrides.scss below other @import
lines
16 ©2017 Acquia Inc. — Confidential and Proprietary
Overriding Bootstrap Defaults
– dcutah/bootstrap/assets/stylesheets/bootstrap/_var
iables.scss
– Copy variables into scss/_default_variables.scss and
customize
– $brand-primary: #29aae1;
– Tons of variables exist: links, buttons, typography, grid,
navbar, etc., etc.
17 ©2017 Acquia Inc. — Confidential and Proprietary
Customizing Your Theme: Templates
– Copy twig files from templates folder in Bootstrap theme
– If not there, check folder of module that generates that
output e.g. Views (core/modules/views/templates)
– Edit twig files as needed
– Clear caches!
18 ©2017 Acquia Inc. — Confidential and Proprietary
Adding a New Region
– Copy bootstrap/templates/system/page.html.twig to
dcutah/templates/page.html.twig
– Add new region code:
{# Above Content #}
{% if page.above_content %}
{% block above_content %}
{{ page.above_content }}
{% endblock %}
{% endif %}
19 ©2017 Acquia Inc. — Confidential and Proprietary
Adding a New Region (cont.)
– Edit dcutah.info.yml to add your region name under the
regions section:
help: 'Help'
above_content: 'Above Content'
content: 'Content’
– Clear all caches!
– Check in block layout to see your new region
20 ©2017 Acquia Inc. — Confidential and Proprietary
Preprocess Functions
– Use dcutah.theme with D7-style preprocess functions
– Use Bootstrap theme plugins
e.g. dcutah/src/Plugin/Preprocess/Page.php
(See https://drupal-
bootstrap.org/api/bootstrap/docs%21plugins%21README.md/group
/plugins/8)
– Or both!
(plugins go first, then .theme file)
21 ©2017 Acquia Inc. — Confidential and Proprietary
Fancy Bootstrap
22 ©2017 Acquia Inc. — Confidential and Proprietary
Bootstrap Layouts & Display Suite
– Download and enable bootstrap_layouts module (requires
layout_plugin module), along with ds module.
– Go to the Manage Display tab for a content type
– Choose a Bootstrap layout to use
– You can then position page elements in the various regions of
the Bootstrap layout
– You also get new fields for Title, Submitted by, Author, etc.
thanks to DS
23 ©2017 Acquia Inc. — Confidential and Proprietary
Bootstrap Layouts & Panels
– Panels should be able to use Bootstrap Layouts too
– Killed my system when installed Panels 4.1
– Uses Layout Discovery experimental module instead of
Layout Plugin, which BL 8.x-4.1 depended on
– Need to use BL 8.x-5.x
– Requires CTools and Page Manager modules (separate
now)
24 ©2017 Acquia Inc. — Confidential and Proprietary
Bonus Tip
25 ©2017 Acquia Inc. — Confidential and Proprietary
Manually Remove a Module
– Manually edit the config table where name =
'core.extension' and remove the module from the data
blob which is a serialized array e.g. i:0;s:6:”panels";
– Decrement the module array length as well near the
beginning (...s:6:"module";a:HERE;{...)
– Truncate the cache_config table
26 ©2017 Acquia Inc. — Confidential and Proprietary
Useful Links
– https://www.drupal.org/project/bootstrap
– https://www.drupal.org/project/field_group
– https://www.drupal.org/project/field_formatter_class
– https://www.drupal.org/project/bootstrap_layouts
– https://www.drupal.org/project/layout_plugin
– https://www.drupal.org/project/ds
– https://drupal-bootstrap.org/api/bootstrap
– http://getbootstrap.com/
27 ©2017 Acquia Inc. — Confidential and Proprietary
Thank You

More Related Content

PPTX
Learn How to Use Atomic Design to Make Your Site Manageable and Adaptable
PDF
Drupal 6 to 7 migration guide
PPT
Taking your site from Drupal 6 to Drupal 7
PDF
Blisstering drupal module development ppt v1.2
ODP
Upgrading your site from Drupal 6 to Drupal 7
PDF
Deployer - Deployment tool for PHP
PDF
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
PPTX
New Repository in AEM 6 by Michael Marth
Learn How to Use Atomic Design to Make Your Site Manageable and Adaptable
Drupal 6 to 7 migration guide
Taking your site from Drupal 6 to Drupal 7
Blisstering drupal module development ppt v1.2
Upgrading your site from Drupal 6 to Drupal 7
Deployer - Deployment tool for PHP
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
New Repository in AEM 6 by Michael Marth

What's hot (20)

PPTX
AEM (CQ) Dispatcher Caching Webinar 2013
PDF
Drupal Step-by-Step: Building a Drupal Site with Acquia Cloud Site Factory
PPTX
Aem hub oak 0.2 full
PDF
AEM - A Collection of developer friendly tools
PDF
Adobe Experience Manager - 6th Edition by Cedric Huesler
PPTX
Best Practices for Migrating a Legacy-Based CMS to Drupal
PPTX
Creating Dynamic Sidebars & Widgets in WordPress
PPTX
PPTX
Managing Multisite: Lessons from a Large Network
PDF
Introduction to Drupal Basics
PPT
Drupal Bootcamp Mcn2008
PDF
React on rails v6.1 at LA Ruby, November 2016
PPTX
CQ5.x Maintenance Webinar 2013
PPTX
Adobe Ask the AEM Community Expert Session Oct 2016
PDF
React.js for Rails Developers
PPTX
The War on ActionView with Russian Doll Caching
PDF
Angular vs React for Web Application Development
PDF
Building faster websites: web performance with WordPress
PDF
Drupal 8 Deep Dive: Plugin System
PPT
Getting started with angular js
AEM (CQ) Dispatcher Caching Webinar 2013
Drupal Step-by-Step: Building a Drupal Site with Acquia Cloud Site Factory
Aem hub oak 0.2 full
AEM - A Collection of developer friendly tools
Adobe Experience Manager - 6th Edition by Cedric Huesler
Best Practices for Migrating a Legacy-Based CMS to Drupal
Creating Dynamic Sidebars & Widgets in WordPress
Managing Multisite: Lessons from a Large Network
Introduction to Drupal Basics
Drupal Bootcamp Mcn2008
React on rails v6.1 at LA Ruby, November 2016
CQ5.x Maintenance Webinar 2013
Adobe Ask the AEM Community Expert Session Oct 2016
React.js for Rails Developers
The War on ActionView with Russian Doll Caching
Angular vs React for Web Application Development
Building faster websites: web performance with WordPress
Drupal 8 Deep Dive: Plugin System
Getting started with angular js
Ad

Similar to How to Create a Drupal 8 Theme Using Bootstrap (20)

PDF
Drupal Step-by-Step: How We Built Our Training Site, Part 2
PDF
Андрей Юртаев - Improve theming with (Twitter) Bootstrap
PDF
Mastering Drupal Theming
PDF
Improve theming with (Twitter) Bootstrap
PDF
Building a Custom Theme in Drupal 8
PDF
Bootstrap Framework and Drupal
PDF
D7 theming what's new - London
ODP
Drupal Theme Development - DrupalCon Chicago 2011
PDF
Drupal south 2014 - bootstrap vs foundation deathmatch - v.1.1
PDF
Dominate The Theme Layer
PDF
Drupal 8: frontend development
PDF
Drupal theming - a practical approach (European Drupal Days 2015)
PPTX
Bootstrap4XPages webinar
PPTX
How to Build Responsive Bootstrap Themes Using Drupal
PDF
Designing with Drupal 8
PDF
Bootstrap & Joomla UI
PDF
Drupal 8: Theming
PDF
Ready? Bootstrap! Go! (CFUG Belgium 24 04-2012)
KEY
Advanced theming
KEY
Advanced theming
Drupal Step-by-Step: How We Built Our Training Site, Part 2
Андрей Юртаев - Improve theming with (Twitter) Bootstrap
Mastering Drupal Theming
Improve theming with (Twitter) Bootstrap
Building a Custom Theme in Drupal 8
Bootstrap Framework and Drupal
D7 theming what's new - London
Drupal Theme Development - DrupalCon Chicago 2011
Drupal south 2014 - bootstrap vs foundation deathmatch - v.1.1
Dominate The Theme Layer
Drupal 8: frontend development
Drupal theming - a practical approach (European Drupal Days 2015)
Bootstrap4XPages webinar
How to Build Responsive Bootstrap Themes Using Drupal
Designing with Drupal 8
Bootstrap & Joomla UI
Drupal 8: Theming
Ready? Bootstrap! Go! (CFUG Belgium 24 04-2012)
Advanced theming
Advanced theming
Ad

More from Acquia (20)

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

Recently uploaded (20)

PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Digital Systems & Binary Numbers (comprehensive )
PPTX
Computer Software and OS of computer science of grade 11.pptx
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
medical staffing services at VALiNTRY
PDF
top salesforce developer skills in 2025.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
System and Network Administraation Chapter 3
PDF
Digital Strategies for Manufacturing Companies
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Design an Analysis of Algorithms I-SECS-1021-03
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Design an Analysis of Algorithms II-SECS-1021-03
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Digital Systems & Binary Numbers (comprehensive )
Computer Software and OS of computer science of grade 11.pptx
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
medical staffing services at VALiNTRY
top salesforce developer skills in 2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Which alternative to Crystal Reports is best for small or large businesses.pdf
Adobe Illustrator 28.6 Crack My Vision of Vector Design
How to Choose the Right IT Partner for Your Business in Malaysia
System and Network Administraation Chapter 3
Digital Strategies for Manufacturing Companies
Upgrade and Innovation Strategies for SAP ERP Customers
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Design an Analysis of Algorithms I-SECS-1021-03

How to Create a Drupal 8 Theme Using Bootstrap

  • 1. 1 ©2017 Acquia Inc. — Confidential and Proprietary Dave Myburgh, Senior Engineer, Acquia Inc. Creating a Custom Bootstrap Subtheme for Drupal 8
  • 2. 2 ©2017 Acquia Inc. — Confidential and Proprietary Who Am I? – Senior Engineer at Acquia, Inc. since 2011 – Maintain www.acquia.com, along with dev., engage., partners., and training.acquia.com – Jack-of-all-trades: site building, front-end, back-end – Started with Drupal 4.7, with theming mostly – Learned PHP by hacking Drupal
  • 3. 3 ©2017 Acquia Inc. — Confidential and Proprietary What We Will Cover – Installing new Bootstrap theme – Creating a subtheme – Naming the subtheme – Customizing subtheme – Overriding Bootstrap variables (Sass) – Template overrides – Optional: Bootstrap Layouts (Panels/Display Suite)
  • 4. 4 ©2017 Acquia Inc. — Confidential and Proprietary Installing Bootstrap
  • 5. 5 ©2017 Acquia Inc. — Confidential and Proprietary Installation – Get Bootstrap theme into your /theme folder drush dl bootstrap, or download and decompress) – Copy starterkits folder of your choice to /theme folder cp –R bootstrap/starterkits/sass dcutah – You should have this: /themes/bootstrap /themes/dcutah – Note that less and sass starterkits will have compiler requirements (node.js, ruby, compass, grunt, gulp, etc.)
  • 6. 6 ©2017 Acquia Inc. — Confidential and Proprietary Rename & Edit Files – THEMENAME.libraries.yml – THEMENAME.starterkit.yml (edit) – THEMENAME.theme – config/install/THEMENAME.settings.yml – config/schema/THEMENAME.schema.yml (edit) – change THEMENAME to dcutah – change starterkit to info – edit files where noted to change info inside them
  • 7. 7 ©2017 Acquia Inc. — Confidential and Proprietary Edit dcutah.info.yml name: 'THEMETITLE' description: 'Uses the Bootstrap framework Sass source files and must be compiled (not for beginners).' libraries: - 'THEMENAME/global-styling' - 'THEMENAME/bootstrap-scripts'
  • 8. 8 ©2017 Acquia Inc. — Confidential and Proprietary Edit config/schema/dcutah.schema.yml THEMENAME.settings: type: theme_settings label: 'THEMETITLE settings'
  • 9. 9 ©2017 Acquia Inc. — Confidential and Proprietary Install Bootstrap Source Files – Only for less or sass starterkits – Download and extract the 3.x Sass source files into your theme folder, so that you have /themes/dcutah/bootstrap https://github.com/twbs/bootstrap-sass/archive/v3.3.7.tar.gz – cdn starterkit only has css/styles.css for you to override default styles – easy!
  • 10. 10 ©2017 Acquia Inc. — Confidential and Proprietary Compile Your Less/Sass Files – Whatever compiler you’re using, you will need to compile your source files. – Make sure your dcutah.libraries.yml file is pointing to the compiled stylesheet I used compass without a config.rb file, so had to rename scss to sass and change path in libraries.yml from css/style.css to stylesheets/style.css – Clear all caches!
  • 11. 11 ©2017 Acquia Inc. — Confidential and Proprietary Enable Themes – Enable Bootstrap AND DCUtah themes. – Make DCUtah the default theme. – You’ll now have a very boring looking Bootstrap theme with some badly placed blocks. – Go ahead and configure blocks and various settings to your liking.
  • 12. 12 ©2017 Acquia Inc. — Confidential and Proprietary Settings of Note – Appearance settings for custom theme – container-fluid (default: off) – img-responsive (default: on) – popovers and tooltips (default: on – performance!)
  • 13. 13 ©2017 Acquia Inc. — Confidential and Proprietary Using Bootstrap
  • 14. 14 ©2017 Acquia Inc. — Confidential and Proprietary Helper Modules – Field Group (field_group) – Field Formatter Class (field_formatter_class) – Allow you to add wrappers and classes around fields so that you can use the Bootstrap grid and other classes – e.g. create a group with a class of “row” and put the default Article node’s image and body inside it; add col- sm-4 to image field and col-sm-8 to body field
  • 15. 15 ©2017 Acquia Inc. — Confidential and Proprietary Customizing Your Theme – scss/component/*.scss – scss/_overrides.scss – Contain existing styles that override Bootstrap or are Drupal-specific – Create new files in component for specific things – your choice on structure e.g. _homepage.scss – Add that file to _overrides.scss below other @import lines
  • 16. 16 ©2017 Acquia Inc. — Confidential and Proprietary Overriding Bootstrap Defaults – dcutah/bootstrap/assets/stylesheets/bootstrap/_var iables.scss – Copy variables into scss/_default_variables.scss and customize – $brand-primary: #29aae1; – Tons of variables exist: links, buttons, typography, grid, navbar, etc., etc.
  • 17. 17 ©2017 Acquia Inc. — Confidential and Proprietary Customizing Your Theme: Templates – Copy twig files from templates folder in Bootstrap theme – If not there, check folder of module that generates that output e.g. Views (core/modules/views/templates) – Edit twig files as needed – Clear caches!
  • 18. 18 ©2017 Acquia Inc. — Confidential and Proprietary Adding a New Region – Copy bootstrap/templates/system/page.html.twig to dcutah/templates/page.html.twig – Add new region code: {# Above Content #} {% if page.above_content %} {% block above_content %} {{ page.above_content }} {% endblock %} {% endif %}
  • 19. 19 ©2017 Acquia Inc. — Confidential and Proprietary Adding a New Region (cont.) – Edit dcutah.info.yml to add your region name under the regions section: help: 'Help' above_content: 'Above Content' content: 'Content’ – Clear all caches! – Check in block layout to see your new region
  • 20. 20 ©2017 Acquia Inc. — Confidential and Proprietary Preprocess Functions – Use dcutah.theme with D7-style preprocess functions – Use Bootstrap theme plugins e.g. dcutah/src/Plugin/Preprocess/Page.php (See https://drupal- bootstrap.org/api/bootstrap/docs%21plugins%21README.md/group /plugins/8) – Or both! (plugins go first, then .theme file)
  • 21. 21 ©2017 Acquia Inc. — Confidential and Proprietary Fancy Bootstrap
  • 22. 22 ©2017 Acquia Inc. — Confidential and Proprietary Bootstrap Layouts & Display Suite – Download and enable bootstrap_layouts module (requires layout_plugin module), along with ds module. – Go to the Manage Display tab for a content type – Choose a Bootstrap layout to use – You can then position page elements in the various regions of the Bootstrap layout – You also get new fields for Title, Submitted by, Author, etc. thanks to DS
  • 23. 23 ©2017 Acquia Inc. — Confidential and Proprietary Bootstrap Layouts & Panels – Panels should be able to use Bootstrap Layouts too – Killed my system when installed Panels 4.1 – Uses Layout Discovery experimental module instead of Layout Plugin, which BL 8.x-4.1 depended on – Need to use BL 8.x-5.x – Requires CTools and Page Manager modules (separate now)
  • 24. 24 ©2017 Acquia Inc. — Confidential and Proprietary Bonus Tip
  • 25. 25 ©2017 Acquia Inc. — Confidential and Proprietary Manually Remove a Module – Manually edit the config table where name = 'core.extension' and remove the module from the data blob which is a serialized array e.g. i:0;s:6:”panels"; – Decrement the module array length as well near the beginning (...s:6:"module";a:HERE;{...) – Truncate the cache_config table
  • 26. 26 ©2017 Acquia Inc. — Confidential and Proprietary Useful Links – https://www.drupal.org/project/bootstrap – https://www.drupal.org/project/field_group – https://www.drupal.org/project/field_formatter_class – https://www.drupal.org/project/bootstrap_layouts – https://www.drupal.org/project/layout_plugin – https://www.drupal.org/project/ds – https://drupal-bootstrap.org/api/bootstrap – http://getbootstrap.com/
  • 27. 27 ©2017 Acquia Inc. — Confidential and Proprietary Thank You

Editor's Notes

  • #2: Acquia's official PPT template begins here. This is the standard presentation title slide.
  • #3: This is the standard content slide.
  • #4: This is the standard content slide.
  • #5: This is the standard content slide.
  • #6: This is the standard content slide.
  • #7: This is the standard content slide.
  • #8: This is the standard content slide.
  • #9: This is the standard content slide.
  • #10: This is the standard content slide.
  • #11: This is the standard content slide.
  • #12: This is the standard content slide.
  • #13: This is the standard content slide.
  • #14: This is the standard content slide.
  • #15: This is the standard content slide.
  • #16: This is the standard content slide.
  • #17: This is the standard content slide.
  • #18: This is the standard content slide.
  • #19: This is the standard content slide.
  • #20: This is the standard content slide.
  • #21: This is the standard content slide.
  • #22: This is the standard content slide.
  • #23: This is the standard content slide.
  • #24: This is the standard content slide.
  • #25: This is the standard content slide.
  • #26: This is the standard content slide.
  • #27: This is the standard content slide.
  • #28: This is the standard presentation ending slide.