You are here

README.txt in Image Field Caption 8

Same filename and directory in other branches
  1. 7.2 README.txt
  2. 7 README.txt
|=====================|
| Image Field Caption |
|=====================|

  Provides a caption text area for image fields.

  This module behavior is based on the Image Field Caption module for Drupal 7 (7.x-2.1).
  https://www.drupal.org/project/image_field_caption
  
  The first adaptation for Drupal 8 was created by Echofive with the support of Wieni for the time,
  the money and the coffee ;)
  
  https://www.drupal.org/u/echofive
  https://www.drupal.org/wieni

|==============|
| Installation |
|==============|

  1. Download the module.
  2. Upload module to the modules/contribs folder.
  3. Enable the module.
  4. Flush all of Drupal's caches.

|=======|
| Usage |
|=======|

  1. Add a new image field to a content type, or use an existing image field and 
    set the field format to "Image with caption" on the "Manage display" tab.
  2. Add or edit a node or any other entity with an image field.
  3. Go to the image field on the entity form.
  4. Enter text into the caption text area and choose format.
  5. Save the entity.
  6. View the entity to see your image field caption.   
      
|===============|
| Configuration |
|===============|

  The configuration is only done on a per field basis.

|===============|
| Caption Theme |
|===============|

  By default, an image field's caption will be rendered below the image. 
  To customize the image caption display, copy the image-caption-formatter.html.twig file
  to your theme's directory and adjust the html for your needs. 
  Flush Drupal's theme registry cache to have it recognize your theme's new file:

  themes/custom/MY_THEME/image-caption-formatter.html.twig

|=============|
| Caption CSS |
|=============|

  To make changes to the caption css, use this CSS selector:

  blockquote.image-field-caption { /* add custom css here */ }

|==================|
| More Information |
|==================|

  About the Drupal 7 version (for legacy).
  http://www.drupal.org/project/image_field_caption
  http://www.tylerfrankenstein.com/image_field_caption

File

README.txt
View source
  1. |=====================|
  2. | Image Field Caption |
  3. |=====================|
  4. Provides a caption text area for image fields.
  5. This module behavior is based on the Image Field Caption module for Drupal 7 (7.x-2.1).
  6. https://www.drupal.org/project/image_field_caption
  7. The first adaptation for Drupal 8 was created by Echofive with the support of Wieni for the time,
  8. the money and the coffee ;)
  9. https://www.drupal.org/u/echofive
  10. https://www.drupal.org/wieni
  11. |==============|
  12. | Installation |
  13. |==============|
  14. 1. Download the module.
  15. 2. Upload module to the modules/contribs folder.
  16. 3. Enable the module.
  17. 4. Flush all of Drupal's caches.
  18. |=======|
  19. | Usage |
  20. |=======|
  21. 1. Add a new image field to a content type, or use an existing image field and
  22. set the field format to "Image with caption" on the "Manage display" tab.
  23. 2. Add or edit a node or any other entity with an image field.
  24. 3. Go to the image field on the entity form.
  25. 4. Enter text into the caption text area and choose format.
  26. 5. Save the entity.
  27. 6. View the entity to see your image field caption.
  28. |===============|
  29. | Configuration |
  30. |===============|
  31. The configuration is only done on a per field basis.
  32. |===============|
  33. | Caption Theme |
  34. |===============|
  35. By default, an image field's caption will be rendered below the image.
  36. To customize the image caption display, copy the image-caption-formatter.html.twig file
  37. to your theme's directory and adjust the html for your needs.
  38. Flush Drupal's theme registry cache to have it recognize your theme's new file:
  39. themes/custom/MY_THEME/image-caption-formatter.html.twig
  40. |=============|
  41. | Caption CSS |
  42. |=============|
  43. To make changes to the caption css, use this CSS selector:
  44. blockquote.image-field-caption { /* add custom css here */ }
  45. |==================|
  46. | More Information |
  47. |==================|
  48. About the Drupal 7 version (for legacy).
  49. http://www.drupal.org/project/image_field_caption
  50. http://www.tylerfrankenstein.com/image_field_caption