Search by tags

Adding Regions to a Theme

Submitted by shiv on Sat, 12/05/2015 - 20:16
Adding regions to a theme requires:

- Adding region meta-data to your THEMENAME.info.yml file - Editing your page.html.twig file and printing the new regions

Disable Drupal 8 caching during development

Submitted by shiv on Sat, 12/05/2015 - 17:58

When you are developing a module or a theme you have to clear Drupal's cache (render cache, dynamic page cache, Twig cache) very often to see the changes being applied. You can disable caching for development.

CSS file organization (for Drupal 8)

Submitted by shiv on Sat, 12/05/2015 - 12:51

File Structure

Rulesets should be grouped into logical files that enforce the separation of concerns within the CSS, that can be aggregated efficiently and that can be easily overridden by themers.

Twig operators

Submitted by shiv on Sat, 12/05/2015 - 01:08

Put one (and only one) space before and after the following operators: comparison operators (==!=<>>=<=), math operators (+,-

Sample blackbox block

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas non porta odio, id mattis erat.

Nam sed tincidunt eros. Donec a venenatis odio, vitae commodo sem. Vivamus ullamcorper pellentesque erat, in adipiscing tortor scelerisque sit amet. Nulla pulvinar urna magna. Vivamus a ipsum lorem. Etiam adipiscing pulvinar lorem.