« Drupal 9 » : différence entre les versions

De wikilivois
Aller à la navigationAller à la recherche
Ligne 32 : Ligne 32 :
=Les modules=
=Les modules=
==Créer une galerie d'albums photos==
==Créer une galerie d'albums photos==
* https://hostadvice.com/how-to/how-to-create-an-image-gallery-using-views-in-drupal-8/
* https://www.drupal.org/project/photo_albums
* https://blog.templatetoaster.com/drupal-gallery-modules/
* https://drudesk.com/blog/photo-galleries-in-drupal-8-with-views
 
* https://www.youtube.com/watch?v=JsT_Ig7KC4Y
* https://www.youtube.com/watch?v=9Jpw3b9ybJE


Modules:
Modules:
* Colorbox
** il faut télécharger la [https://github.com/jackmoore/colorbox/archive/master.zip bibliothèque colorbox] dans le répertoire www/libraries/colorbox (qu'il faut créer)
* Crop
* Photo Albums (photo_albums)
* Photo Albums (photo_albums)
The only configuration needed for this module is to add an encrytion
The only configuration needed for this module is to add an encrytion
Ligne 55 : Ligne 47 :
</licode>
</licode>


The values above are just examples, but you must make sure you match the
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.
key length to the method chosen, in this case aes-256-ctr expects 64
* Colorbox
hexadecimal characters.
** il faut télécharger la [https://github.com/jackmoore/colorbox/archive/master.zip bibliothèque colorbox] dans le répertoire www/libraries/colorbox (qu'il faut créer)
* Crop
* Pathauto
* [https://www.drupal.org/project/filefield_paths File field Paths]


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

Version du 13 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:

  • 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.