Skip to content

Commit

Permalink
Merge pull request #13 from froboy/DS-108-lb-docs
Browse files Browse the repository at this point in the history
feat: LB Build docs - add Hero, Simple Menu, Card, Promo, Tabs
  • Loading branch information
podarok authored Nov 30, 2022
2 parents 4c911c7 + 89f6122 commit 213633d
Showing 1 changed file with 109 additions and 19 deletions.
128 changes: 109 additions & 19 deletions content/en/docs/content-structure/layout-builder/_index.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Layout Builder Blocks
title: Layout Builder
---

These custom block types exist to support page building with Layout Builder.

## Global Fields
### Global Fields

These fields are reused across many of the below components.

Expand All @@ -13,32 +13,58 @@ These fields are reused across many of the below components.
| Section title | field_section_title | Text (plain) | no | 1 |
| Section subtitle | field_section_subtitle | Text (plain, long) | no | 1 |

## Custom Blocks
## Accordion

### Accordion
**Machine name:** `lb_accordion`

Machine name: `lb_accordion`

A component for adding custom Accordions.
Expandable pairs of question/answer or header/section fields.

| Label | Machine Name | Type | Required | Cardinality | Help text | Field Settings | Notes |
| ----- | ------------ | ---- | -------- | ----------- | --------- | -------------- | ----- |
| Accordion Item | field_entity_reference_paragraph | Entity reference revisions | no | unlimited | | Bundle: accordion_item |

#### Accordion Item
### Accordion Item

**Machine name:** `lb_accordion_item`

| Label | Machine Name | Type | Required | Cardinality | Help text | Field Settings | Notes |
| ----- | ------------ | ---- | -------- | ----------- | --------- | -------------- | ----- |
| Title | field_title | Text (plain) | yes | 1 |
| Body | field_body | Text (formatted, long, with summary) | no | 1 |

## Cards

Machine name: `lb_accordion_item`
**Machine name:** `lb_cards`

Flexible card-style components that allow up to 4 cards to display across the page depending on the chosen layout.

| Label | Machine Name | Type | Required | Cardinality | Help text | Field Settings | Notes |
| ----- | ------------ | ---- | -------- | ----------- | --------- | -------------- | ----- |
| Title | field_title | Text (plain) |
| Body | field_body | Text (formatted, long, with summary) |
| Section title | (inherit) |
| Section subtitle | (inherit) |
| Section CTA/Link | field_cta | Link | no | 1 |
| # of columns | field_columns | List (text) | no | 1 | Choose "none" for one-column layout. |
| Cards | field_cards | Entity reference revisions | no | 4 | | Bundle: Card

### Grid CTA
### Card

Machine name: `lb_grid_cta`
**Machine name:** `lb_card`

Grid CTA Layout Builder component.
The Card paragraph is referenced by the Cards block.

| Label | Machine Name | Type | Required | Cardinality | Help text | Field Settings | Notes |
| ----- | ------------ | ---- | -------- | ----------- | --------- | -------------- | ----- |
| Title | field_card_title | Text (plain) | yes | 1 |
| Image | field_card_image | Entity reference | no | 1 |
| Topic Tag | field_card_topic_tag | Text (plain) | no | 1 | | | May be changed to term. |
| Description | field_card_description | Text (plain, long) | no | 1 |
| CTA/Link | field_card_cta | Link | no | 1 |

## Grid CTA

**Machine name:** `lb_grid_cta`

Sets of content with a headline, description, and link displayed in 2 to 4-item wide rows, with the option to include icons or images.

| Label | Machine Name | Type | Required | Cardinality | Help text | Field Settings | Notes |
| ----- | ------------ | ---- | -------- | ----------- | --------- | -------------- | ----- |
Expand All @@ -48,11 +74,11 @@ Grid CTA Layout Builder component.
| # of columns | field_columns | List (text) | yes | 1 | | | Allows 2-4 columns, defaults to 4. |
| Grid Items | field_grid_items | Entity Reference | yes | unlimited | | Bundle: Grid Item

#### Grid Item
### Grid Item

Machine name: `lb_cta_item`
**Machine name:** `lb_cta_item`

The Grid Item paragraph is referenced by the Grid CTA.
The Grid Item paragraph is referenced by the Grid CTA component.

| Label | Machine Name | Type | Required | Cardinality | Help text | Field Settings | Notes |
| ----- | ------------ | ---- | -------- | ----------- | --------- | -------------- | ----- |
Expand All @@ -61,7 +87,24 @@ The Grid Item paragraph is referenced by the Grid CTA.
| Grid item media | field_grid_item_icon | Entity reference | no | 1 |
| Grid item CTA/link | field_grid_item_cta_link | Link | no | 1 |

### Ping-pong
## Hero Banner

**Machine name:** `lb_hero`

A full-width, almost full-height display with a header, description, and call to action overlaid on an image.

| Label | Machine Name | Type | Required | Cardinality | Help text | Field Settings | Notes |
| ----- | ------------ | ---- | -------- | ----------- | --------- | -------------- | ----- |
| Title | field_title | Text (plain) | yes | 1 |
| Description | field_description | Text (formatted, long) | no | 1 |
| Media | field_media | Entity reference | no | 1 | | Bundle: Image, Local Video, Video |
| CTA\Link | field_hero_cta | Link | no | 1 |

## Ping-pong

**Machine name:** `lb_ping_pong`

Usually paired sets of full-width page components that include media, header, description, and call to action arranged horizontally.

| Label | Machine Name | Type | Required | Cardinality | Help text | Field Settings | Notes |
| ----- | ------------ | ---- | -------- | ----------- | --------- | -------------- | ----- |
Expand All @@ -71,4 +114,51 @@ The Grid Item paragraph is referenced by the Grid CTA.
| Item Description | field_item_description | Text (formatted, long) | no | 1 |
| Item CTA\Link | field_item_cta | Link | no | 2 | The first will use the primary style and the second, secondary. |
| Item Image | field_item_image | Entity reference | no | 1 |
| Item Image Position | field_item_image_position | List (text) | yes | 1 | Places the image on this side of the page in the full-width display. Image will always be above Description on at narrow widths.
| Item Image Position | field_item_image_position | List (text) | yes | 1 | Places the image on this side of the page in the full-width display. Image will stack above text at narrow widths.

## Promo Card

**Machine name:** `lb_promo`

A title, headline, description, and link that usually display in the right or left sidebar.

| Label | Machine Name | Type | Required | Cardinality | Help text | Field Settings | Notes |
| ----- | ------------ | ---- | -------- | ----------- | --------- | -------------- | ----- |
| Title | field_title | Text (plain) | yes | 1 |
| Body | body | Text (formatted, long, with summary) | no | 1 |
| Icon / Image | field_image | Entity reference | no | 1 | | Bundle: Image |
| CTA / Link | field_cta | Link | no | 1 |

## Simple Menu

**Machine name:** `lb_simple_menu`

A simple 1-level sidebar menu that can display in either the right or left sidebar area.

| Label | Machine Name | Type | Required | Cardinality | Help text | Field Settings | Notes |
| ----- | ------------ | ---- | -------- | ----------- | --------- | -------------- | ----- |
| Icon | field_icon | Entity reference | no | 1 | | Bundle: Image |
| Links | field_lb_simple_menu_links | Link | yes | unlimited |

## Tabs

**Machine name:** `lb_tabs`

Gives users the ability to switch page views by selecting tabs across the top of the page instead of having to navigate to a new page.

| Label | Machine Name | Type | Required | Cardinality | Help text | Field Settings | Notes |
| ----- | ------------ | ---- | -------- | ----------- | --------- | -------------- | ----- |
| Section title | (inherit) |
| Section subtitle | (inherit) |
| Tabs | field_tabs | Entity reference revisions | no | unlimited | | Bundle: Tab |

### Tab

**Machine name:** `tab`

The Tab paragraph is referenced by the Tabs block.

| Label | Machine Name | Type | Required | Cardinality | Help text | Field Settings | Notes |
| ----- | ------------ | ---- | -------- | ----------- | --------- | -------------- | ----- |
| Title | field_title | Text (plain) | yes | 1 |
| Body | field_body | Text (formatted, long, with summary) | no | 1 |

0 comments on commit 213633d

Please sign in to comment.