You are here

README.txt in Config default image 8.2

Same filename and directory in other branches
  1. 8 README.txt
CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Requirements
 * Installation
 * Configuration
 * Maintainers


INTRODUCTION
------------

Config Default Image provides a field formatter which allows a site builder
to specify the default image for an image field which is tracked in source
code and deployed in config management. It captures the path to a
VCS-controlled image file instead of the uuid of a non-tracked content
resource in site files.

This addresses the problem that the core default image feature uses a file
content which, without this module, config management (drush cex/cim...) will
deploy the config but not the content, so the default image wouldn't deploy
with it.

 * For a full description of the module, visit the project page:
   https://www.drupal.org/project/config_default_image

 * To submit bug reports and feature suggestions, or to track changes:
   https://www.drupal.org/project/issues/search/config_default_image


REQUIREMENTS
------------

No special requirements.


INSTALLATION
------------

 * Install as you would normally install a contributed Drupal module.
   For further information, see:
   https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-modules


CONFIGURATION
-------------

 Prepare image file:

  * Place a web-friendly image file that Drupal recognizes (png, jpg, etc) in
  a folder in your Drupal installation that is tracked by VCS. Suggested folders
  are a custom module or a custom theme folder, and copy the path to that file
  from Drupal root. Ex: /modules/custom/my_module/images/default_logo.png

 Field configuration:

  * In Manage Fields, edit that field: In this image field configuration,
  make sure that the Default Image is not set.
  * In Manage Display, configure the Format of this field: Paste the path
  to the image, and adjust any other options.
  * Be sure to save the Manage Display screen.

 Export configuration:
  * Export as you normally would: ie. `drush cex -y`
  * Capture to VCS both your updated field config (which contains the
  environment-universal path) and the image asset itself.

MAINTAINERS
-----------

Current maintainers:
 * Gaël Gosset (GaëlG) - drupal.org/u/gaëlg

This project has been sponsored by:
 * Insite
   A lasting and independent business project with more than 20 years
   experience and several hundred references in web projects and visual
   communication with public actors, associative and professional networks.

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Installation
  6. * Configuration
  7. * Maintainers
  8. INTRODUCTION
  9. ------------
  10. Config Default Image provides a field formatter which allows a site builder
  11. to specify the default image for an image field which is tracked in source
  12. code and deployed in config management. It captures the path to a
  13. VCS-controlled image file instead of the uuid of a non-tracked content
  14. resource in site files.
  15. This addresses the problem that the core default image feature uses a file
  16. content which, without this module, config management (drush cex/cim...) will
  17. deploy the config but not the content, so the default image wouldn't deploy
  18. with it.
  19. * For a full description of the module, visit the project page:
  20. https://www.drupal.org/project/config_default_image
  21. * To submit bug reports and feature suggestions, or to track changes:
  22. https://www.drupal.org/project/issues/search/config_default_image
  23. REQUIREMENTS
  24. ------------
  25. No special requirements.
  26. INSTALLATION
  27. ------------
  28. * Install as you would normally install a contributed Drupal module.
  29. For further information, see:
  30. https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-modules
  31. CONFIGURATION
  32. -------------
  33. Prepare image file:
  34. * Place a web-friendly image file that Drupal recognizes (png, jpg, etc) in
  35. a folder in your Drupal installation that is tracked by VCS. Suggested folders
  36. are a custom module or a custom theme folder, and copy the path to that file
  37. from Drupal root. Ex: /modules/custom/my_module/images/default_logo.png
  38. Field configuration:
  39. * In Manage Fields, edit that field: In this image field configuration,
  40. make sure that the Default Image is not set.
  41. * In Manage Display, configure the Format of this field: Paste the path
  42. to the image, and adjust any other options.
  43. * Be sure to save the Manage Display screen.
  44. Export configuration:
  45. * Export as you normally would: ie. `drush cex -y`
  46. * Capture to VCS both your updated field config (which contains the
  47. environment-universal path) and the image asset itself.
  48. MAINTAINERS
  49. -----------
  50. Current maintainers:
  51. * Gaël Gosset (GaëlG) - drupal.org/u/gaëlg
  52. This project has been sponsored by:
  53. * Insite
  54. A lasting and independent business project with more than 20 years
  55. experience and several hundred references in web projects and visual
  56. communication with public actors, associative and professional networks.