paragraph type list - NCIOCPL/cgov-digital-platform GitHub Wiki

A managed list of link items, which can appear with different styles.

There are also Dynamic Lists.

Properties

  • Display Name: List
  • Machine-readable Name: cgov_list
  • Description: Managed list of links

List Styles

  • Compact
  • Title and Description
  • Title, Description, and Image
  • Alternating Image

List Items

Note: As of July 2020, the Alternating Image list is not set up to accept media links. Backlog ticket #2705

Fields

List Title

  • Field Name: field_list_title
  • Label: Title
  • Type: Text (plain)
  • Required: No
  • Max Characters: 255
  • Tooltip Text: The title of this list.
  • Cardinality: 1
  • Translatable: Yes

List Style

  • Field Name: field_list_item_style
  • Label: List Item Style
  • Type: Dropdown
    • Standard
      • Compact (value: list_item_title)
      • Title and Description (value: list_item_title_desc)
      • Title, Description, and Image (value: list_item_title_desc_image)
      • Alternating Image (value list_item_alternating)
      • NOTE: This comes from cgov_list_allowed_values_function defined in cgov_list.module
    • NCIDS
      • Title and Description (value: ncids_list_item_title_desc)
      • Title, Description, and Image (value: ncids_list_item_title_desc_image)
  • Required: Yes
  • Max characters: N/A
  • Tooltip Text: Select the styling for each list item.
  • Cardinality: 1
  • Translatable: No

List Items

  • Field Name: field_list_items
  • Label: List Items
  • Type: Paragraphs
    • Using Asymmetrical Translation Widget
    • Allowed Types:
      • cgov_internal_link
      • cgov_external_link
      • cgov_media_link
  • Required: No
  • Max characters: N/A
  • Tooltip Text: The list items for this list.
  • Cardinality: Unlimited
  • Translatable: Yes

Form Display Order

  • List Title
  • List Style
  • List Items
⚠️ **GitHub.com Fallback** ⚠️