Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Drupal 8 in a nutshell at TechCaravan

Drupal 8 in a nutshell at TechCaravan

Drupal 8
- Intro
- History
- Manny Pacquiao
- Site Building
- Mobile Responsive
- New Updates 8.2.x

Paul de Paula

April 22, 2017
Tweet

More Decks by Paul de Paula

Other Decks in Technology

Transcript

  1. Who Am I ? Customer Success Engineer Pantheon Performance &

    Application Former Senior Developer X-Team Former IT Consultant World Bank Former Senior Developer New Amsterdam Ideas (NuCivic now) Weston Ruter Technology Director, XWP
  2. What is Drupal? Drupal is open source content management software

    maintained and developed by a community of more than 35,000 developers around the world who have contributed to the project. It is distributed under the terms of the GNU General Public License (or "GPL"), which means anyone is free to download it and share it with others.
  3. What is Open Source? The defining principle of open source

    is that anyone can sell services and products created with the software, but not the software itself.
  4. Represent this with a video. Maybe from Dries’ Prague slides?

    :) AB: Submitted to the DA via their webform, since unfortunately it has to be on YouTube in order to reference from here. Bleh. http://www.youtube.com/watch?v=ipOc1km2uEc Improved accessibility
  5. We can finally manage our sites on our iPhones or

    Android tablets without pulling our hair out
  6. Breakpoint 1. Is a module that comes with core but

    is not enabled by default. 2. During the process of developing Drupal 8 and adding features. 3. Responsive Image module requires Breakpoint, as it uses the breakpoints that are coded into the theme along with image styles to re-size the images appropriately. 4. Much like Breakpoint though, just enabling it doesn’t cause magical things to happen with your images on the site. 5. There is still configuration that must be set up, but unlike Breakpoint there is a user interface to do your configuration.
  7. Responsive Image 1. Ability to make our site change at

    different sizes. 2. This doesn't necessarily instantly make your site responsive. 3. Breakpoint simply gives you a nice built-in way to identify and use your breakpoints. 4. The real work that still needs to be done is in your theme itself, which requires time by a front end developer and a site builder to actually create a responsive theme.
  8. Flow and Stacked Regions There are two special kinds of

    regions in Open Framework that help us create complex layouts, "flow" regions and "stacked" regions. These types of regions are found within the Content section of the page template. Flow Regions Stacked Regions
  9. Views = fully customizable... With the Drupal 8 views, you

    can customize: Admin listings Sidebar content Image galleries Slideshows REST output ...with 0 lines of code!
  10. How will having a responsive website help your business ?

    Your website is the first thing a lot of your customers will see before even entering your physical store, assuming you have one. From a marketing perspective, a responsive website can enhance the effectiveness of your marketing campaign by allowing potential customers to instantly connect with you.
  11. How will having a responsive website help your business ?

    More than 60% of all traffic on the internet is from mobile devices. There are also more mobile devices today, than people, on the earth. 4 in 5 individuals access their retail options on their mobile phones. Approximately 40% of the browsing public will return to their search page if the first option they clicked on was not mobile-friendly.
  12. Twig Example: node.html.twig <article{{ attributes }}> {{ title_prefix }} {%

    if not page %} <h2{{ title_attributes }}> <a href="{{ url }}" rel="bookmark">{{ label }}</a> </h2> {% endif %} {{ title_suffix }} {% if display_submitted %} <footer class="node__meta"> {{ author_picture }} <div class="node__submitted {{ author_attributes.class }}"{{ author_attributes|without('class') }}> {% trans %}Submitted by {{ author_name|passthrough }} on {{ date }}{% endtrans %} {{ metadata }} </div> </footer> {% endif %} <div class="node__content {{ content_attributes.class }}"{{ content_attributes|without('class') }}> {{ content|without('links') }} </div> {% if content.links %} <div class="node__links"> {{ content.links }} </div> {% endif %} </article> 1. HTML5 tags 2. {{ print a variable }} 3. {% logic(stuff) %}
  13. Web services other systems or frameworks desktop Android applications other

    Drupal sites Flash components iPhone applications kiosk applications
  14. Not invented here "Proudly Found Elsewhere" Much more modern, object-oriented

    code (classes, inheritance, interfaces, etc.) Embracing latest PHP standards (e.g. PSR-0, namespaces, traits) Using many “best of breed” external libraries: Composer, PHPUnit, Guzzle, Zend Feed Component...