0

We're using a paragraph for the hero/header of our site. Within the paragraph are a number of different toggles to define various options for the hero.

I'd like to have it so that if the user is creating content in one content-type - the default configuration for the paragraph differs from if they're entering content for another content type.

Can I have create unique configurations of a paragraph type based on the content type it's inserted into?

  • 2
    TL,DR: No. Workarounds: You can either define different paragraph types and set different default paragraphs per field/content type, or write custom code using hook_field_widget_paragraphs_form_alter. – Hudri Sep 11 at 15:16
  • 1
    What do you mean by configurations? – Jdrupal Sep 11 at 15:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.