marknatividad
marknatividad

Reputation: 630

How to add Paragraph fields to Block in Drupal 8?

I'd like to be able to add multiple Paragraph components to a Block in Drupal 8.

A Paragraph type will be created with fields in it, and the ideal use case for the user is to add a new paragraph field that works like Entity Reference's.

Just wondering if there is an out-of-the-box solution for this, or am I looking at a custom implementation?

Thanks in advance!

Upvotes: 1

Views: 3324

Answers (3)

Ravi kant
Ravi kant

Reputation: 13

paragraph block is also an option . https://www.drupal.org/project/paragraph_blocks

Upvotes: -1

Ashi
Ashi

Reputation: 11

  • Create Custom Block type from "admin/structure/block/block-content/types/add"
  • In "Mange fields" select "paragraph" from the "Reference Revision" Please see the screen shot

  • Now Select the paragraph that you created as shown below. Please see the screen shot

Upvotes: 1

GAMe
GAMe

Reputation: 11

Yes you can do this by:

1: Click Structure 2: Click Block Layout 3: Click Custom Block Library 4: Click Block Types Tab 5: Click Add Custom Block

From here it is the same as creating a standard content type. You then apply the block type you just created to a new custom block.

Hope this helps. Images are for Ref. Stage 1

Stage 2

Upvotes: 1

Related Questions