Drupal 8

By peterm, 27 June, 2018

Tags

Building Address Project

Given a CSV file and a matching content type, here's how we get the data migrated into Drupal.

The following modules will be required:

Migrate, Migrate Plus, Migrate Source CSV, Migrate Tools, Migrate Drupal UI

Note that in this example we will import latitude, longitude into a geofield.

I had some drush migrate-import errors and needed to work with composer to get he latest dev version installed for Migrate Tools.

drush migrate-import mailstops_import

drush migrate-rollback mailstops_import

By peterm, 6 June, 2018

There are at least two methods to get this done. Here's the method I used and below is the outline of a method I found in the book Mastering Drupal 8.

This is a simple overriding process. Get a copy of the page.html.twig from the Bootstrap parent theme folder and copy it into our subtheme/templates directory.

First, we need to create a jumbotron region. This can be accomplished by modifying the page.html.twig file with the following snippet.

Above the #Main section, we'll paste this block. Use your own image

{# Jumbotron #}

By peterm, 6 June, 2018

I wanted to create a Drupal 8 view and in one column use Custom Text to output a Bootstrap button. After much wrangling, this is what I came up with.

You should start with the Settings for the Bootstrap Table view and make sure to set the Align for the column with the Custom Text.

table settings

This is what our typical list view should look like.

By peterm, 6 March, 2015

Here's how I lost 3 hours. In using a comination of these modules with the Drupal Foundation theme. I wanted a small search button aligned right in the right sidebar. See http://mobilemaps-dev-proxy.ucsc.edu.

  • search api
  • search api autocomplete
  • search api live results
  • Foundation 4 theme

 

function zurb_maps_form_alter(&$form, &$form_state, $form_id) {

  // Sexy submit buttons

Tags