Core Configuration
After initial installation of Drupal, you may want to configure some core settings.
This document provides a summary of the core settings and modules that can be enabled or disabled.
General Settings¶
These can be applied via recipes. Please check the following recipe links for more details and documentation.
Enable Core Modules¶
git checkout -b enable-core-modules dev
lando drush en -y \
media \
media_library \
field_layout
lando drush cex -y
git add .
git commit -m "Enable core media, media_library and field_layout modules"
git push
# Create MR
Disable Core Modules¶
git checkout -b disable-core-modules dev
lando drush pm:uninstall -y \
announcements_feed
lando drush updb -y
lando drush cex -y
git add .
git commit -m "Disable core announcements_feed module"
git push
# Create MR
Install Admin Theme¶
Gin Admin Theme And Gin Toolbar¶
git checkout -b install-admin-theme dev
lando composer require drupal/gin drupal/gin_toolbar
git add ./drupal/composer.json ./drupal/composer.lock
git commit -m "Require drupal/gin drupal/gin_toolbar"
# Enable theme
lando drush then gin -y
# Enable gin_toolbar
lando drush en gin_toolbar -y
lando drush cex -y
git add .
git commit -m "Enable gin and gin_toolbar"
lando drush config-set system.theme admin gin -y
lando drush cex -y
git add .
git commit -m "Set gin as admin theme"
# This will enable core navigation module and
# core layout_builder, layout_discovery modules
# as its dependencies
lando drush en navigation -y
Visit /admin/appearance/settings/gin
and ensure that 'New Drupal Navigation, Test integration (Experimental)' is selected in 'Settings/ Navigation (Drupal Toolbar)'.
Multilingual Settings¶
git checkout -b setup-multilinguality dev
lando drush en -y \
language \
config_translation \
content_translation \
locale
Add languages via the UI: /admin/config/regional/language
Configure the language negotiation settings via the UI: /admin/config/regional/language/detection
In /admin/config/media/file-system
, set 'Interface translations directory' to `sites/default/files/translations'