Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
stepbystep:drupal [2021/03/06 21:59] giancarlo [Basic configuration] |
stepbystep:drupal [2021/03/11 18:22] (current) giancarlo |
||
---|---|---|---|
Line 6: | Line 6: | ||
* [[stepbystep: | * [[stepbystep: | ||
* [[stepbystep: | * [[stepbystep: | ||
+ | * [[stepbystep: | ||
+ | * [[stepbystep: | ||
</ | </ | ||
====== Drupal 9 ====== | ====== Drupal 9 ====== | ||
Line 188: | Line 190: | ||
config: | config: | ||
config: | config: | ||
+ | </ | ||
+ | === Enable composer patch === | ||
+ | To be able to apply patch with composer we need: | ||
+ | <code bash> | ||
+ | $ composer require cweagans/ | ||
+ | - Installing cweagans/ | ||
</ | </ | ||
=== Private filesystem === | === Private filesystem === | ||
Line 339: | Line 347: | ||
</ | </ | ||
[we need to come back here after Strawberryfield installed] | [we need to come back here after Strawberryfield installed] | ||
+ | Then Reindexing (browse UI at admin/ | ||
+ | \\ | ||
+ | Fields will be added after Srawberryfield installed (dmin/ | ||
+ | === Views === | ||
+ | <code bash> | ||
+ | $ composer require ' | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | </ | ||
+ | === Webform === | ||
+ | <code bash> | ||
+ | $ composer require ' | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: webform, webform_bootstrap, | ||
+ | $ composer require ' | ||
+ | - Installing drupal/ | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: webformnavigation, | ||
+ | </ | ||
+ | To avoid warnings in Status report | ||
+ | <code bash> | ||
+ | $ composer require ' | ||
+ | - Installing google/ | ||
+ | - Installing drupal/ | ||
+ | vendor/ | ||
+ | Successfully enabled: recaptcha_element | ||
+ | </ | ||
+ | Libraries, see https:// | ||
+ | <code bash> | ||
+ | $ composer require wikimedia/ | ||
+ | - Installing wikimedia/ | ||
+ | |||
+ | $ nano -w composer.json | ||
+ | </ | ||
+ | <code json> | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | }, | ||
+ | </ | ||
+ | <code bash> | ||
+ | $ composer update drupal/ | ||
+ | - Installing algolia/ | ||
+ | - Installing choices/ | ||
+ | - Installing ckeditor/ | ||
+ | - Installing ckeditor/ | ||
+ | - Installing ckeditor/ | ||
+ | - Installing ckeditor/ | ||
+ | - Installing ckeditor/ | ||
+ | - Installing codemirror/ | ||
+ | - Installing jquery/ | ||
+ | - Installing jquery/ | ||
+ | - Installing jquery/ | ||
+ | - Installing jquery/ | ||
+ | - Installing jquery/ | ||
+ | - Installing jquery/ | ||
+ | - Installing jquery/ | ||
+ | - Installing jquery/ | ||
+ | - Installing jquery/ | ||
+ | - Installing jquery/ | ||
+ | - Installing jquery/ | ||
+ | - Installing jquery/ | ||
+ | - Installing progress-tracker/ | ||
+ | - Installing signature_pad/ | ||
+ | - Installing svg-pan-zoom/ | ||
+ | - Installing tabby/tabby (12.0.3): Extracting archive | ||
+ | - Installing tippyjs/5.x (5.2.1) | ||
+ | - Installing tippyjs/6.x (6.2.6) | ||
+ | </ | ||
+ | === Form Mode Manager with patches === | ||
+ | Partially follow this post https:// | ||
+ | \\ | ||
+ | Add package source from git to avoid composer block to install | ||
+ | <code bash> | ||
+ | $ nano -w composer.json | ||
+ | </ | ||
+ | <code json> | ||
+ | }, | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | </ | ||
+ | Add patch links to composer.json | ||
+ | <code json> | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "Fix Form Mode title": | ||
+ | "D9 readyness": | ||
+ | }, | ||
+ | " | ||
+ | "D9 readyness": | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | Then it can be installed and patches applied | ||
+ | <code bash> | ||
+ | $ composer -v require drupal/ | ||
+ | Using version dev-8.x-2.x for drupal/ | ||
+ | ... | ||
+ | - Installing drupal/ | ||
+ | ... | ||
+ | - Applying patches for drupal/ | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | $ vendor/ | ||
+ | </ | ||
+ | === Workflow === | ||
+ | We need patch as stated here https:// | ||
+ | <code bash> | ||
+ | $ nano -w composer.json | ||
+ | </ | ||
+ | <code json> | ||
+ | " | ||
+ | " | ||
+ | "D9 readyness": | ||
+ | }, | ||
+ | </ | ||
+ | <code bash> | ||
+ | $ composer require ' | ||
+ | - Installing drupal/ | ||
+ | - Applying patches for drupal/ | ||
+ | https:// | ||
+ | |||
+ | $ vendor/ | ||
+ | Successfully enabled: workflow | ||
+ | </ | ||
+ | === Token UUID === | ||
+ | <code bash> | ||
+ | $ composer require drupal/ | ||
+ | - Installing drupal/ | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: tokenuuid, token | ||
+ | </ | ||
+ | === Web Services === | ||
+ | <code bash> | ||
+ | $ vendor/ | ||
+ | |||
+ | $ composer require ' | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: restui | ||
+ | </ | ||
+ | === File related modules === | ||
+ | <code bash> | ||
+ | $ composer require ' | ||
+ | - Installing drupal/ | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: fancy_file_delete, | ||
+ | |||
+ | $ composer require ' | ||
+ | - Installing phenx/ | ||
+ | - Installing lsolesen/ | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: file_mdm, file_mdm_exif | ||
+ | |||
+ | $ composer require ' | ||
+ | - Installing fileeye/ | ||
+ | - Installing drupal/ | ||
+ | - Installing drupal/ | ||
+ | |||
+ | $ sudo apt install imagemagick-6.q16 | ||
+ | $ convert --version | ||
+ | Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https:// | ||
+ | Copyright: © 1999-2019 ImageMagick Studio LLC | ||
+ | License: https:// | ||
+ | Features: Cipher DPC Modules OpenMP | ||
+ | Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib | ||
+ | |||
+ | $ vendor/ | ||
+ | Successfully enabled: imagemagick, | ||
+ | |||
+ | $ composer require ' | ||
+ | - Installing drupal/imce (2.3.0): Extracting archive | ||
+ | $ vendor/ | ||
+ | Successfully enabled: imce | ||
+ | </ | ||
+ | === React-PHP === | ||
+ | <code bash> | ||
+ | $ composer require react/ | ||
+ | - Installing react/ | ||
+ | - Installing evenement/ | ||
+ | - Installing react/ | ||
+ | - Installing react/ | ||
+ | - Installing react/ | ||
+ | </ | ||
+ | === More useful/ | ||
+ | <code bash> | ||
+ | **** facets | ||
+ | |||
+ | $ composer require ' | ||
+ | - Installing drupal/ | ||
+ | |||
+ | $ vendor/ | ||
+ | Successfully enabled: facets | ||
+ | |||
+ | **** field permissions | ||
+ | |||
+ | $ composer require ' | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: field_permissions | ||
+ | |||
+ | **** inline entity form | ||
+ | |||
+ | $ composer require ' | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: inline_entity_form | ||
+ | |||
+ | **** pathauto | ||
+ | |||
+ | $ composer require ' | ||
+ | - Installing drupal/ | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: pathauto, ctools | ||
+ | |||
+ | **** queue_ui | ||
+ | |||
+ | $ composer require ' | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: queue_ui | ||
+ | |||
+ | **** quick_node_clone | ||
+ | |||
+ | $ composer require drupal/ | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: quick_node_clone | ||
+ | |||
+ | **** schema metatag | ||
+ | |||
+ | $ composer require ' | ||
+ | - Installing drupal/ | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: schema_metatag, | ||
+ | |||
+ | **** Json-ld | ||
+ | |||
+ | $ composer require ' | ||
+ | - Installing ml/iri (1.1.4): Extracting archive | ||
+ | - Installing ml/json-ld (1.2.0): Extracting archive | ||
+ | |||
+ | **** ramsey uuid | ||
+ | |||
+ | $ composer require ramsey/uuid | ||
+ | - Installing ramsey/ | ||
+ | - Installing brick/math (0.9.2): Extracting archive | ||
+ | - Installing ramsey/uuid (4.1.1): Extracting archive | ||
+ | |||
+ | **** swaggest json-schema | ||
+ | |||
+ | $ composer require swaggest/ | ||
+ | - Installing swaggest/ | ||
+ | - Installing phplang/ | ||
+ | - Installing swaggest/ | ||
+ | |||
+ | **** drupal/ | ||
+ | |||
+ | $ composer require drupal/ | ||
+ | - Installing paragonie/ | ||
+ | - Installing paragonie/ | ||
+ | - Installing phpseclib/ | ||
+ | - Installing monolog/ | ||
+ | - Installing psr/cache (1.0.1): Extracting archive | ||
+ | - Installing firebase/ | ||
+ | - Installing google/auth (v1.15.0): Extracting archive | ||
+ | - Installing google/ | ||
+ | - Installing google/ | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: google_api_client | ||
+ | |||
+ | **** mixnode/ | ||
+ | |||
+ | $ composer require mixnode/ | ||
+ | - Installing mixnode/ | ||
+ | |||
+ | **** config and context | ||
+ | |||
+ | $ composer require drupal/ | ||
+ | - Installing drupal/ | ||
+ | - Installing drupal/ | ||
+ | - Installing drupal/ | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: config_inspector, | ||
+ | |||
+ | **** drupal/ | ||
+ | |||
+ | $ composer require drupal/ | ||
+ | - Installing drupal/ | ||
+ | $ vendor/ | ||
+ | Successfully enabled: moderated_content_bulk_publish | ||
+ | |||
+ | ***** frictionlessdata/ | ||
+ | |||
+ | WAIT package update | ||
+ | </ | ||
+ | === composer.json at the end of these steps === | ||
+ | <code json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "D9 readyness": | ||
+ | }, | ||
+ | " | ||
+ | "Fix Form Mode title": | ||
+ | "D9 readyness": | ||
+ | }, | ||
+ | " | ||
+ | "D9 readyness": | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ |