Drupal 8 modules and Solarium installation

These steps are only for Drupal 8.

Download modules using Composer

Better download the modules using Composer than Drush. This will install the required libraries, including the class Solarium. General (deeper) instructions may be found at Using Composer to install Drupal packages through Drupal.org

Run these commands in the Drupal root folder.

Realname: Remove 15 characters username trim

In case your user has long realname (15+ characters), such username will be trimmed to 15 characters and "..." added by default. If you wish to have displayed full name instead the trim version then place this code (D7) into your template.php:

/**
 * Overrides template_process_username().
 */
function THEMENAME_preprocess_username(&$variables) {
  $account = $variables['name_raw'];
  $variables['name'] = check_plain($account);
}

Add fields to a block [D8]

This documentation is written for the 8.x-2.x version of Display Suite.

By following this method the site builder gets a block to place that can have a set of fields as defined by a view mode. The block's display can be templated in twig accordingly, and its theming will reflect any selected layouts in the display suite controls.

Install PECL uploadprogress on Ubuntu 12.04 to 16.04

Requirements

These instructions will work on the following systems:

  • Ubuntu 12.04 LTS with PHP 5.5/5.6/7
  • Ubuntu 14.04 LTS with PHP 5.5/5.6/7
  • Ubuntu 15.10 with PHP 5.5/5.6/7
  • Ubuntu 16.04 LTS with PHP 5.5/5.6/7

You will also need command line access with admin/sudo permissions.

Note: If you have an older version of Ubuntu or PHP you really should if possible update for security reasons (as well as performance and bug fixes).

Installation

Installation is quite simple; in your command line run:

Multi-byte UTF-8 support in Drupal 7

Drupal 7.50 introduces multi-byte UTF-8 support for MySQL and other database drivers, allowing for emojis, Asian symbols, mathematical symbols, etc.

For MySQL

In order to be able to use this, the following requirements must be met:

Pages

Subscribe with RSS Subscribe to RSS - Site administrators