Configuring the Search API server (D8)

Create a new Search API server

Go to http://example.com/admin/config/search/search-api
○ Click on "add server"
○ Add a name for the server
Add the connection configuration to your Solr server and leave the other defaults

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.

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