Thank you for this great module.

I want to use the paragraph type "Columns (Equal)" in one of my content types.

Additionally I want to add a second "Columns (Equal) 2" paragraph type with only 1 difference:
Let users only add the following fields: Simple and Image.

But this does not work. When I create the paragraph type "Columns (Equal) 2" in the same way as "Columns (Equal)" exists, the result is:
Creating a new node in the node form there is no select list for Simple & Image, but there are 6 autocomplete field (for default values).

I think this is a bug or is there any way to create a second "Columns (Equal) 2" paragraph type and enable only Image and Simple for this second paragraph type which are placed in culomns. And at the same time the original "Columns (Equal)" paragraph type can be uses in another content type (with select list and all paragraphs (simple, picture, blank, views, accordion, culumns, ... all)?

I tried it with alpha3 and dev version of Bootstrap Paragraphs.

Can you help? Thank you.

Comments

drupalfan2 created an issue. See original summary.

thejimbirch’s picture

Category: Bug report » Support request

Hi,

Where the bundle types are selected is the bp_column_content field on Columns (Equal) bundle.

You will need to create a new Entity reference revisions field on your new bundle, which will limit to the Image and Simple bundles being referenced.

Try taking these steps:

  1. Add a new Paragraph Type, Columns (Equal) Limited.
  2. Add the existing Background field, bp_background.
  3. Add the existing Width field, bp_width.
  4. Add a new field > Reference Revisions > Paragraphs
  5. Come up with a descriptive name and machine name.
  6. On the next screen, limit the allowed values to 6.
  7. On the next screen, select only the Paragraph types you need and Save.
  8. Copy the field--paragraph--bp-column-content.html.twig template from the bootstrap_paragraphs module to your theme and rename it to your new field name. It should be something like field--paragraph--field-new-name.html.twig
  9. Go back to your content type(s) and in the Paragraphs Entity reference revisions field, click edit and make sure your new Paragraph type is selected.
thejimbirch’s picture

Title: Can not create 2 different Columns (Equal) paragrah types » Can not create 2 different Columns (Equal) paragraph types
thejimbirch’s picture

From #bootstrap channel in Drupal Slack:

drupalfan [4:54 AM]
Thank you. In the meantime I realized this without Bootstrap Paragraphs but Paragraphs only. Works very fine! But maybe I will need your solution (I have to test it, if it works) later on.

thejimbirch’s picture

Status: Active » Closed (works as designed)
drupalfan2’s picture

Thank you. In the meantime I realized this without Bootstrap Paragraphs but Paragraphs only. Works very fine! But maybe I will need your solution (I have to test it, if it works) later on.