Disable cache and enable Twig Debug!

Disable cache and enable Twig Debug!

You will find this helps when developing drupal themes as it allows you to not have to clear cache everytime for you to see your change after you make a change to your theme.

1) copy $SITE_ROOT/sites/example.settings.local.php to $SITE_ROOT/sites/default/settings.local.php

2) edit settings.local.php

  1. a) uncomment:
    • $config['system.performance']['css']['preprocess'] = FALSE;
    • $config['system.performance']['js']['preprocess'] = FALSE;
    • $settings['cache']['bins']['render'] = 'cache.backend.null';
    • $settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
    • $settings['rebuild_access'] = TRUE;

3) edit $SITE_ROOT/sites/default/settings.php

Theme Dependency Error when you try to do a single item import

We were working on migrating a D7 site to D8 and in trying to import a View to the D8 site we got the following errors:

Configuration block.block.seven_menu_menu_draggable_views depends on the theme that will not be installed after import.
Configuration block.block.seven_system_main depends on the theme that will not be installed after import.
...
Configuration sndev.settings depends on the sndev extension that will not be installed after import.

Configure Your Environment for Theme Development

(I copied this info from Drupalize.me)

Disable render caching and JavaScript/CSS aggregation

Both render caching, and JavaScript/CSS aggregation can be disabled by making modifications to configuration variables in your settings.php file.

In addition, aggregation can be turned off in the UI by navigating to Configuration > Performance (admin/config/development/performance).

Setting up SSH Keys for more than one account and repository

Setting up SSH Keys for more than one account and repository

https://medium.com/@fredrikanderzon/setting-up-ssh-keys-for-multiple-bitbucket-github-accounts-a5244c28c0ac

 

My origins delving into git was creating an account on Bitbucket.  That process was quite painless, learning how to create an SSH key on my laptop, setting it up for my account on Bitbucket.

Ignoring Files on a Local Repository

We maintain maintain many websites on the Pantheon Platform.  One of the things that we must do when creating local repositories is create a settings.local.php file for storing our local credentials so this information is not shared, nor does it break the site when you bring it down and push it back up.  I wish to not have git continually asking if I wish to track this file and I do not wish to take a chance of commiting it accidentally so, with help, I was told of this method to ignore the file locally and not have that addition to .gitignore not conflict or interfere elsewhere.

Pages