« Drupal 9 » : différence entre les versions

De wikilivois
Aller à la navigationAller à la recherche
Aucun résumé des modifications
Ligne 44 : Ligne 44 :
* Crop
* Crop
* Photo Albums (photo_albums)
* Photo Albums (photo_albums)
The only configuration needed for this module is to add an encrytion
key and method to your settings.php file. You can choose any encryption
method supported by OpenSSL (see below for a list of supported methods -
this list is subject to change).
To add these values to your settings.php file, add them as follows:
<licode file=settings.php>
$settings['two_way_hashing_key'] = '3F4428472B4B6EE0655368566D597133C43677397A576826452948404D635166';
$settings['two_way_hashing_method'] = 'aes-256-ctr';
</licode>
The values above are just examples, but you must make sure you match the
key length to the method chosen, in this case aes-256-ctr expects 64
hexadecimal characters.


{{Copy|2021|Christophe de Livois|FDL}}
{{Copy|2021|Christophe de Livois|FDL}}

Version du 7 février 2021 à 21:25


Installation

  • Paramétrer les hôtes de confiance

https://www.drupal.org/docs/installing-drupal/trusted-host-settings

<licode file=site/default/settings.php>

$settings['trusted_host_patterns'] = [
   '^livois\.com$',
   '^.+\.livois\.com$',
];

</licode>

Maintenance

Mise à jour

https://drupalize.me/tutorial/update-drupals-minor-version?p=3233#method2

Dans <htdocs/www>, en utilisant le bon drush (htdocs/vendor/drush/drush/drush):

#drush state:set system.maintenance_mode 1
#drush cache:rebuild
#composer outdated "drupal/*"
#composer update drupal/core-recommended --with-dependencies
#drush updatedb
#drush cache:rebuild
#drush state:set system.maintenance_mode 0
#drush cr

Les modules

Créer une galerie d'albums photos

Modules:

  • Colorbox
    • il faut télécharger la bibliothèque colorbox dans le répertoire www/libraries/colorbox (qu'il faut créer)
  • Crop
  • Photo Albums (photo_albums)

The only configuration needed for this module is to add an encrytion key and method to your settings.php file. You can choose any encryption method supported by OpenSSL (see below for a list of supported methods - this list is subject to change).

To add these values to your settings.php file, add them as follows: <licode file=settings.php> $settings['two_way_hashing_key'] = '3F4428472B4B6EE0655368566D597133C43677397A576826452948404D635166'; $settings['two_way_hashing_method'] = 'aes-256-ctr'; </licode>

The values above are just examples, but you must make sure you match the key length to the method chosen, in this case aes-256-ctr expects 64 hexadecimal characters.

Copyright

© 2021 Christophe de Livois

Tête de GNU Vous avez l'autorisation de copier, distribuer et/ou modifier ce document suivant les termes de la GNU Free Documentation License, Version 1.2 ou n'importe quelle version ultérieure publiée par la Free Software Foundation; sans section invariante, sans page de garde, sans entête et sans page finale. Pour plus d'informations consulter le site de l'APRIL.