CuBoulder / ucb2021_base

Drupal 9 Base theme for CU Boulder web properties
GNU General Public License v2.0
0 stars 1 forks source link

Paragraph Refactor #215

Closed jcsparks closed 2 years ago

jcsparks commented 2 years ago

New requirements :

Content needs

jcsparks commented 2 years ago
  1. Inventory our paragraphs
  2. Determine which paragraphs could be made in to Media Entities
  3. Evaluate the ones that can't be converted to Media
  4. ...
  5. Refactor on either permissions of the Block system or pulling in Blocks like Paragraphs on a Node.
jnicholCU commented 2 years ago

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

Paragraph List


Paragraph | Media Status | Conversion Ability -- | -- | -- paragraph--article-content.html.twig | - parent nested paragraphs, no media field | It cannot be converted to a media type on its own because it has no media. Unsure of how nesting media works paragraph--blockquote.html.twig | - no media | Unable to convert. We tried this before and without a media type selected we cannot make a media entity paragraph--content-grid.html.twig | - parent nested paragraphs, no media field | Unable to convert to media, no media fields, nested children paragraph--content-row.html.twig | - parent of nested paragraphs, no media field | Unable to convert to media, no media fields, nested children paragraph--events-calendar.html.twig | - no media | Unable to convert. This should not need to be converted though. paragraph--expandable-content.html.twig | - accordions/tabs, no media fields | Unable to convert to media, no media fields paragraph--grid-layout-content.html.twig | - child of content grid has media | Able to convert to media. This paragraph has images. Even though it is a child it should still be convertible. paragraph--hero-unit.html.twig | - hero unit has media | Able to convert paragraph--how-to-step.html.twig | - unsure if in use, no media | N/A paragraph--image-gallery.html.twig | - has infinite number of images | Able to convert paragraph--json-data.html.twig | - unsure, probably no media | N/A paragraph--media.html.twig | - child of article content, gives option to select video, image, or block quote, no media itself | Unable to convert, probably good to refactor naming scheme anyway though. paragraph--newsletter-section-article.html.twig | - reference entity article, no media | Unable to convert, only references article content types paragraph--newsletter-section.html.twig | - parent nested paragraphs, no media | Unable to convert, parent of children with media paragraph--newsletter-section-content.html.twig | Child of newsletter-section, has media | Able to convert as long as nesting works correctly paragraph--row-layout-content.html.twig | - child of content row, has media | Able to convert to media. This paragraph has image. Even though it is a child it should still be convertible. paragraph--slider.html.twig | - child of slider, is media | Able to convert, pending on nesting paragraph--social-media-icons-block.html.twig | - parent of slider image, no media | Unable to convert paragraph--text-block.html.twig | - no media | Unable to convert paragraph--ucb-contact-email.html.twig | - unsure if in use, no media | N/A paragraph--ucb-contact-fax.html.twig | - unsure if in use, no media | N/A paragraph--ucb-contact-telephone.html.twig | - unsure if in use, no media | N/A paragraph--ucb-contact-url.html.twig | - unsure if in use, no media | N/A paragraph--ucb-guide-row.html.twig | - unsure if in use, no media | N/A paragraph--ucb-incident-update.html.twig | - unsure if in use, no media | N/A paragraph--ucb-video-reveal.html.twig | - contains media (video) | Able to convert