Difference between revisions of "Drupal"

From Wasya Wiki
Jump to: navigation, search
(Install & Configure)
(Install & Configure)
Line 10: Line 10:
 
   composer require 'drupal/metatag:^2.0'
 
   composer require 'drupal/metatag:^2.0'
 
   composer require 'drupal/redirect:^1.9'
 
   composer require 'drupal/redirect:^1.9'
 +
 
   composer require 'drupal/superfish:^1.6'
 
   composer require 'drupal/superfish:^1.6'
 +
  composer require 'drupal/nice_menus:^2.0@beta'
  
 
   composer require 'drupal/webform:^6.0'
 
   composer require 'drupal/webform:^6.0'

Revision as of 20:59, 16 September 2023

Install & Configure

 composer create-project drupal/recommended-project:9.5.10 html
 composer require 'drupal/devel:^5.1'
 composer require 'drupal/s3fs:^3.3'
 composer require 'wasya-co/consent_popup: 1.0.4.x-dev'
 composer require drush/drush  ## installed version ^11.6
 composer require 'drupal/metatag:^2.0'
 composer require 'drupal/redirect:^1.9'
 composer require 'drupal/superfish:^1.6'
 composer require 'drupal/nice_menus:^2.0@beta'
 composer require 'drupal/webform:^6.0'
 composer require 'drupal/formblock:^2.0@beta'

Configure Apache

<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>

Configure s3fs

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Statement0",
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket",
                "s3:ListBucketVersions"
            ],
            "Resource": [
                "arn:aws:s3:::<ze bucket>"
            ]
        },
        {
            "Sid": "Statement1",
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:GetObject",
                "s3:DeleteObjectVersion",
                "s3:DeleteObject",
                "s3:GetObjectVersion",
                "s3:GetObjectAcl",
                "s3:PutObjectAcl"
            ],
            "Resource": [
                "arn:aws:s3:::<ze bucket>/*"
            ]
        }
    ]
}

Disable caching

From: https://www.drupal.org/docs/develop/development-tools/disable-caching

  • Add the settings.local.php and
  • Modify development.services.yml:
parameters:
  http.response.debug_cacheability_headers: true
  twig.config:
    debug: true
    auto_reload: true
    cache: false
services:
  cache.backend.null:
    class: Drupal\Core\Cache\NullBackendFactory