Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Settings

By editor , 12 January, 2022

Add a custom service YAML container

Tags

  • Drupal 8
  • Code
  • Settings
  • Services
  • YAML

Example: settings for local environnement.
Create the local settings file : local.services.yml the add to local settings.php file

# Local service config
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/default/local.services.yml';

By editor , 15 June, 2021

Drupal Site Settings : Using settings.php

Tags

  • Drupal 8
  • Code
  • Settings

Drupal settings file can contains variable which can use to use for different configuration in different environments.

Example:
env_name
default_info_nid

$settings['env_name'] = 'Local';
$settings['default_info_nid'] = 1';

By editor , 26 November, 2020

Redis and Php-Redis with drupal 9 on Linux

Tags

  • Drupal 8
  • Settings
  • Drupal 9
  • Cache

Install Redis

sudo apt-get update && sudo apt-get upgrade
sudo apt install redis-server
sudo apt install php-redis

Check

sudo systemctl status redis-server
redis-cli ping

By editor , 24 March, 2018

Taxonomy Tips

Tags

  • Drupal 8
  • Settings
  • Taxonomy

To Show more than 100 terms in taxonomy administration (overview) page, You must set the terms_per_page_admin of taxonomy.settings.

By editor , 4 November, 2016

Set Drupal System variables manually

Tags

  • Drupal 8
  • Drupal 7
  • Settings

To set Drupal System variables you can use the $settings (on Drupal 8) and $conf (On Drupal 7) array of setting.php file.

By editor , 21 June, 2016

SASS SCSS LESS compile

Tags

  • CSS
  • Code
  • Settings
  • Theming

Compilers

1. COMPASS

Compass is a powerfull command line compiler

Install (Linux debian) : sudo apt-get install ruby-compass

Link : http://compass-style.org/help/documentation/command-line/

2. Koala

By editor , 23 November, 2015

Drupal 8 Menu System

Tags

  • Drupal 8
  • Code
  • Settings

1. Define route in module.routing.yml
Exemple :
module.view.settings:
  path: '/url/to/the/page'
  defaults:
    _controller: '\Drupal\module\Controller\Demo::view'
    _title: ''

By editor , 23 November, 2015

Drupal 8 not Display or Rebuild correctly

Tags

  • Drupal 8
  • Error
  • Settings
  • Server

This is due to file/folder permission. so drupal cant write twig tempory files.

By editor , 16 November, 2015

Add "Comment" Field

Tags

  • Drupal 8
  • Settings

Comments are set as a field, so by default it is not present. To add comment field Goto:

Admin -> Structure -> Content types ->"YOUR CONTENT"
  ->Manage fields->Add field
  ->Select 'Comments' on 'Re-use an existing field' and Save.

Settings

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer