Drupal 8 notes – Transfer site to local system for development

These are procedures and notes to download source code and database content for development use on a local workstation server. The goal is create a mirror of the Drupal based website for local development and testing. Prerequisites You should have a local or alternate development system ready. This systems will require a web server running… Continue reading Drupal 8 notes – Transfer site to local system for development

Drupal 8 content type, view, block, twig notes

Large general tutorial video making a directory with content types and views:https://www.webwash.net/how-to-build-directory-using-drupal-8/ PathAuto module information. For helping to make more readable URLshttps://www.webwash.net/automatically-generate-url-aliases-using-pathauto-drupal-8/ Using Entity References in Views – Great overview of using entity references.https://www.ostraining.com/blog/drupal/drupal-8-entity-reference-view/ Drupal 8 theme twig template file reference. Includes various naming conventions for pages, views, blocks, nodes, etc.https://www.drupal.org/docs/8/theming/twig/twig-template-naming-conventions

NPM and Yeoman update/install notes for MacOS

Had to deal with some issues introduced by bad homebrew installations and possible old NPM installs. My guess is that I probably cheated/screwed up using a sudo install when I should have done something different. This all started playing with the WebDevStudions WordPress plugin generator for yeoman. Get a Plugin Kickstart with Yeoman & generator-plugin-wp!… Continue reading NPM and Yeoman update/install notes for MacOS

My Favorite Httrack commands

HTTrack is a website mirroring utility that can swamp your disks with mirror copies of the internet. I’ve had to use it several times to make off-line copies of websites for all sorts of weird reasons. You’ll find HTTrack at: www.httrack.com. You can get a full list of command line options at: https://www.httrack.com/html/fcguide.html. There is… Continue reading My Favorite Httrack commands

Apache log one-liners using tail, awk, sort, etc.

Good bunch of samples with other examples found at: https://blog.nexcess.net/2011/01/21/one-liners-for-apache-log-files/ [code] # top 20 URLs from the last 5000 hits tail -5000 ./transfer.log | awk ‘{print $7}’ | sort | uniq -c | sort -rn | head -20 tail -5000 ./transfer.log | awk ‘{freq[$7]++} END {for (x in freq) {print freq[x], x}}’ | sort -rn… Continue reading Apache log one-liners using tail, awk, sort, etc.

Using HyperDB to separate and share user and user_meta between WordPress installations

I need to remember to keep this example for some testing. This should be a good start for sharing a user and user_meta between websites. I do know that user_meta tends to have very site-centric settings at times. Original article was located at: http://wordpress.aspcode.net/view/63538464303732726666099/how-to-use-hyperdb-to-separate-and-share-a-user-dataset-between-wordpress-installs [code] $wpdb->add_database(array( //Connect to Users Database ‘host’ => DB_HOST, // I… Continue reading Using HyperDB to separate and share user and user_meta between WordPress installations