www.drupaleurope.org
Enrich your Paragraphs workflow with �features you didn’t know about
Miloš Bovan
Miloš Bovan
Drupal developer @ MD Systems
drupal.org/u/mbovan
Paragraphs FAQ
Link paragraphs type configuration page
Plugins provided by
Paragraphs Collection
module
Style groups configuration
your_theme.paragraphs.style_group.yml
buttons:
label: 'Buttons'
Styles configuration
your_theme.paragraphs.style.yml
button-primary:
title: 'Primary'
classes:
- button--primary
groups:
- buttons
button-secondary:
title: 'Secondary'
classes:
- button--secondary
groups:
- buttons
Node edit form
Node edit form
Node view
2. How to reuse paragraphs and place them through a library?
Paragraphs library
Adding a new library item
Using a library item
Unlinking from library
Editing unlinked paragraphs
Promote to library
3. How to use Drag&Drop mode to
better organize my paragraphs?
Paragraphs ...
Default widget
Drag&Drop mode
4. How to organize my long
list of paragraphs types?
Add paragraph
Paragraph type configuration
3rd party settings
Add paragraph
5. How to extend paragraphs actions and convert one into a different type?
Alter paragraphs actions
/**
* Implements hook_paragraphs_widget_actions_alter().
*/
function paragraphs_test_paragraphs_widget_actions_alter(&$widget_actions, &$context) {
if (\Drupal::state()->get('paragraphs_test_dropbutton')) {
$widget_actions['dropdown_actions']['test_button'] = ParagraphsWidget::expandButton([
'#type' => 'submit',
'#value' => t('Convert'),
'#name' => 'field_paragraphs_test',
'#submit => 'paragraphs_test_conversion',
]);
}
}
Alter paragraphs actions
6. How to properly enable
Paragraphs translations?
Language settings (Content)
Language settings (Text paragraph)
Language settings (Container paragraph)
drupal.org/docs/8/modules/paragraphs/multilingual-paragraphs-configuration
7. How to configure Content Moderation workflow and Paragraphs?
Configure workflows
Configure workflows
Moderated content
Multilingual moderated content
drupal.org/docs/8/modules/paragraphs/multilingual-and-content-moderation
Q&A
Thank you!
Miloš Bovan �drupal.org/u/mbovan