Drupal 8 Eming - Stanford University

2y ago
17 Views
3 Downloads
2.97 MB
36 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Milena Petrie
Transcription

1Drupal 8 ThemingZakiya Code:github.com/zakiya/d8-theming-camp-demo

2Questions?

3D7 D8Small Core Changes Views, Admin Menu, Breakpoints, Date, EntityReference, Link, CKeditor, Migrate, Block Menus (light),Responsive Image, multilingual support, and fieldableblocks all in core Backbone.js, Underscore.js, and Modernizr are in core No JQuery or CSS loads by default.

4D7 D8Big Core Changes Configuration Management Using Twig templating engine No more IE 6, 7, and 8 support

5D7 D8Gotchas drush cr not drush cc all /themes instead of /sites/all/themes /modules instead of sites/all/modules

6Local Dev SetupGet your Drupal Find latest dev or beta on d.o drupal.org/node/3060/release Download and install on your favoriteAMP stack

7Local Dev SetupPerformance Settings By default css, js and html are cached Disable caching through UI at /config/development/performance Or Copy sites/example.settings.local.php to settings.local.php See /sites/example.settings.local.php)Uncomment these lines in /default/settings.php :if (file exists( DIR . 'settings.local.php')){ include DIR . ‘/settings.local.php'; } drush cr when done!

8THEME.info.ymlBasic Declarations

9Logo If logo is called logo.svg and putin root folder Drupal will autodetect logo.png or logo.gif can be addedvia Drupal UI

10Screenshot screenshot.png placed in root will beauto-detectedor declare in THEME.info.yml

11Declare Base Theme

12Theme Features

13Regions Theme will work with no regions Declare regions inTHEME.info.yml

14Modify Core/ModuleCSS

15Remove Core/ModuleCSS

16Adding Stylesheets

17Adding Libraries drupal.org/developing/api/8/assets

18Declare Library Edit THEME.info.yml

19Add CSS and JS

20Optionally IncludeJQuery

21Other Ways to include assets To versioning existing libraries:hook library info alter()See: api.drupal.org To add assets conditionally:hook preprocess page(& vars) { vars['#attached']['library'][] 'core/modernizr';} ORhook page attachments alter(& page) {if ( conditions) { page['#attached']['library'][] ‘core/jquery';}See: drupal.org/theme-guide/8/assets

22TwigTime

23Why Twig Secure Separate business logic from display Faster, smarter templating engine Supported/used beyond Drupal

24Twig Debug Change twig.config: debug: truein services.yml

Twig Templates 141 Twig templates* To override, place in *.html.twig in themefolder Don’t forget to drush cr25* find path/to/core/modules -name *.html.twig ! -path "*test*"

26Twig Code Basics To print{{my variable}} To comment{# Drupaling b. #} To operate{% if title %}

27Twig Code Extras Translate function (filter){{ 'Home' t }} Check plain{{ title striptags }} See others at g-part-2 drupal.org/node/1918824

28Twig Code ExtrasReuse Templates

29Twig Code ExtrasTwig Blocks

30Twig Preprocess THEME.theme replaces template.php

31Twig {{dump}}* {{ dump()}} {{ dump(my variable) }} drupal.org/node/1906780*Might get WSOD due to memory issues

32Devel Kint

33TwigDocumentation twig.sensiolabs.org/documentation

34Responsive breakpoints in coredrupal.org/documentation/modules/breakpoint THEME.breakpoints.yml picture in core

35Other things Drupal settings for use in js Classy module Initialize Image Style Settings intheme https://www.drupal.org/node/2356753 No HOOK process

36Gimme feedbackZakiya Code:github.com/zakiya/d8-theming-camp-demo

in root folder Drupal will auto-detect logo.png or logo.gif can be added via Drupal UI 9. Scr

Related Documents:

How to create custom content to store in your Drupal database using CCK Implementing seo in drupal website Drupal custom theme development (Html to drupal theme development) Drupal 8.0 content management system syllabus 1. Drupal's requirements and how it works: drupal architecture Drupal 8 Basics o How Drupal began o What is Drupal 8

guided migration from Drupal 6 or 7 to Drupal 8. Assisted upgrades to Drupal 8 can now be done, much more easily than they used to be able to earlier. Three modules were added in order to facilitate the custom migrations as well as the Drupal 6 or Drupal 7 to Drupal 8 migrations: Migrate Migrate Drupal Migrate Drupal UI Chapter 2

Chapter 1: Developing for Drupal 8. 7. Introducing Drupal (for developers) 8. Developing for Drupal 8. 8. Technologies that drive Drupal. 9 PHP 10 Databases and MySQL 10 The web server 11 HTML, CSS, and JavaScript 11. Drupal architecture. 11 Drupal core, modules, and themes 11 Hooks, plugins, and events 12 Services and the dependency injection .

Customer Identity and Access Management in a global Drupal setup Drupal Business Days, Frankfurt, 19.05.17. . Sponsor of multiple Drupal camps and European Drupal Business Days Active community work through contributions . Document and assign all tasks. Solutions. Be bold. Solutions. Get into the lead.

This is a free introductory course for people who are curious about Drupal, and want to find out more. Your Drupal guide will help you get up to speed with Drupal more quickly than if you tried on your own. First youʼll find out about your Drupal Guide delivering the Hello Drupal tour, and also learn about the other people in the room with you.

serez invité à choisir la version de Drupal à télécharger. Je recommande de sélectionner le dernier. Ainsi, lorsque Drupal est téléchargé, vous devez l'installer. drupal site:install Après quelques étapes simples, votre site Drupal sera prêt. Avec cette méthodologie, une nouvelle installation de Drupal nous prend entre 5 et 7 .

SEISMIC: A Self-Exciting Point Process Model for Predicting Tweet Popularity Qingyuan Zhao Stanford University qyzhao@stanford.edu Murat A. Erdogdu Stanford University erdogdu@stanford.edu Hera Y. He Stanford University yhe1@stanford.edu Anand Rajaraman Stanford University anand@cs.stanford.edu Jure Leskovec Stanford University jure@cs.stanford .

Artificial Intelligence softwares are improving the speed and efficiency of the media production process and the ability to organize visual assets. Many gaming platforms are also adopting new technologies to bring more interactive gaming experience. Sports show maximum affinity towards using Artificial Intelligence for game preparation and real-time analysis of the on-field action. Banking and .