The IU Framework suggests that Images should be accompanied with Captions and Attributions (however their example code doesn't show this in action), they are using the <figure> tag as a wrapper, which suggests that <figcaption> should also be used.

Drupal 8 now has the media module in core. We should probably switch the iu_image paragraph type to support Media entities and add fields/formatters there for captions/attributions.

CommentFileSizeAuthor
#3 iu_paragraphs-2925685.patch12.26 KBjwilson3

Comments

jwilson3 created an issue. See original summary.

jwilson3’s picture

Title: Add Image Caption & Attribution (media?) support to IU Paragraphs » Replace basic Images with Media in Core, Caption & Attribution in IU Paragraphs
Version: » 8.x-1.x-dev
jwilson3’s picture

Status: Active » Needs review
StatusFileSize
new12.26 KB

This initial patch mainly adds new default config useful for installation of the module only.

It does a few backward incompatible things, noted by ⚠️. However these config changes will only affect your site if you re-import with Drupal 8 features or completely uninstall the module, and reinstall it.

Adds support for media in core.
Adds all Content-related image styles based on IU Style guide sizing requirements.
⚠️Replaces iu_image_field with iu_media_field.
Adds fields on iu_image paragraph type for caption description and caption title.
Adds Media support for Images (png, jpg, svg) to image fields.
Exports all media, embed, and entity_browser configs.
Exports the configuration for the entity embed configuration for drupal core ckeditor integration.
Adds dependencies on media, embed, entity_browser, and entity_embed, as well as svg_image_field.

jwilson3’s picture

Whoops that was the wrong patch for that comment #3. This is the correct on.

  • jwilson3 committed 83d6543 on 8.x-1.x
    Issue #2925685: Minor config yaml cleanups.
    
  • jwilson3 committed bf6c91b on 8.x-1.x
    Issue #2925685: Replace basic Images with Media in Core...

  • jwilson3 committed e52b07e on 8.x-1.x
    Issue #2925685: Followup to fix/clean YAML config files
    

  • jwilson3 committed 1b432a1 on 8.x-1.x
    Issue #2925685 by jwilson3: Theme images w/ captions
    

  • jwilson3 committed 216d3b3 on 8.x-1.x
    Issue #2925685 by jwilson3: Fix image style name to match aspect ratio...

  • jwilson3 committed 1e9030b on 8.x-1.x
    Issue #2925685 by jwilson3: Additional Image/SVG styles
    

  • jwilson3 committed d1afe80 on 8.x-1.x
    Issue #2925685 by jwilson3: Additional media styles
    

  • jwilson3 committed 4f67678 on 8.x-1.x
    Issue #2925685 by jwilson3: Rename media fields to not conflict with...

  • jwilson3 committed bdd26b8b on 2.0.x
    Issue #2925685: Add media image field to banner, pullquote, feature and...

  • jwilson3 committed 63ff8912 on 2.0.x
    Issue #2925685 by jwilson3: Standardize field names
    

  • jwilson3 committed a89ab350 on 2.0.x
    Issue #2925685 by jwilson3: remove rogue UUIDs from config/install
    
jwilson3’s picture

The recent set of comits on the 2.0.x branch have replaced Image fields with Media library fields on several Paragraph types including:

* Callout / Pullquote
* Feature
* Feature Carousel
* Section

Existing Paragraph that contain references to images will NOT be migrated to Media entities and only new paragraph will gain the ability to reference or upload new Media (as opposed to the simple image field).

We also did several naming cleanups for new installs to follow convention on field names not strictly unique to the IU functionality, including field_media_image, field_media_title, field_media_svg, etc.

This work was ultimately released on the 2.1.x branch and released in 2.1.0

  • jwilson3 committed 3a4708ff on 2.1.x
    Issue #2925685 by jwilson3: Export and update adtl media config
    

  • jwilson3 committed f671e6bd on 2.1.x
    Issue #2925685 by jwilson3: remove legacy fields and entity browser...

  • jwilson3 committed 951e7b89 on 2.1.x
    Issue #2925685 by jwilson3: re-export configs from drupal 9
    
jwilson3’s picture

Status: Needs review » Fixed

Issue queue cleanup.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.