![]() ![]() ![]() Name: Basic description: HTML5 and SASS theme. In Drupal 8, you now require two files, and, to achieve the same result core = "7.x" project = "basic" Regions regions = Header regions = Content regions = Footer Stylesheets stylesheets = css/style.css stylesheets = css/print.css Scripts scripts = js/build/scripts.js , Name = Basic description = HTML5 and SASS theme. In Drupal 7, you would define all of your stylesheets and scripts in your file as follows: If you were to use the examples below, you would replace the label basic with the name of your theme. Basic is a grid based starter theme available for Drupal 7 and Drupal 8. The following examples use Basic as the default theme. Today, with Drupal 8, themers can now do this without having to create a custom module. This allows us to maintain structure and organize our third-party libraries into a single folder while also alowing us to load them within the site when required. Typically, this is where we would store third-party library assets such as CKEditor which is a WYSIWYG JavaScript library required for the use of the WYSIWYG Drupal contrib module. In Drupal 7, many of us are familiar with the libraries folder that is placed within our /sites/all directory. Let’s build on what you (maybe) already know This article will help with the introduction and concepts of libraries in Drupal 8’s new theming layer. ![]() Along with these API changes, there are also new conceptual changes that, maybe, haven’t garnered the same level of attention. As Drupal themers new to D8, we’ll begin to learn the new syntax and evolve to configuring our themes with. Drupal 8 is here and so is the new theming engine powered by Twig. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |