- Issue created by @aanjaneyam
- Status changed to Closed: works as designed
5 months ago 7:13am 15 July 2024 - 🇷🇸Serbia levmyshkin Novi Sad, Serbia
Hi aanjaneyam, Block reference module doesn't support Inline Blocks at all, it's not related to EBT modules:
https://www.drupal.org/project/block_field/issues/3191907 →
https://drupal.stackexchange.com/questions/299372/how-do-i-attach-a-sing...Block Reference module maintainers recommend to use Layout Builder or create blocks via Block Library first and insert them as block instances:
/admin/content/blockThe problem is Inline Blocks are not plugginable (in my understanding) and don't act as usual Content Blocks.
- 🇬🇧United Kingdom aanjaneyam
Thanks for response. Alternatively, would Extra Paragraph Types module serve the above purpose of inline paragraphs in the content entity.
- 🇷🇸Serbia levmyshkin Novi Sad, Serbia
Yes, sure, you can create usual Paragraph field and include any set of Extra Paragraph Types for this field. That's the idea of EPT modules. I'm only not sure what your mean about "inline" paragraphs. Maybe you should use Layout Paragraph to make editing workflow easier:
https://www.drupal.org/project/layout_paragraphs → - 🇬🇧United Kingdom aanjaneyam
I only meant that whether I will be able to add different Extra paragraph types provided by EPT module to an instance (node) of a content type by adding a field of type entity reference revision referencing paragraph types with unlimited values. Whether I can achieve the same purpose which I was trying to achieve with EBT module above by following the steps below but this time with EPT modules:
1) Create a new content type and save.
2) Add a field (for example field name: Page section) of type Entity Reference Revision with the following settings:
a) Allowed number of values: Unlimited.
b) Reference Method: Default.
c) Which paragraphs should be allowed: Include the selected below. Then select all the EPT paragraph types
d) Save the field and content type.
e) Also enable manage layout using Layout Builder.
3) Go and add content of the type created above.
4) Fill title and body field.
5) Add an EPT paragraph (of any available type) and click save.
6) Then add another EPT paragraph (of any available type) to the same content and click save.
7) And then add more EPT of a different type if needed. - 🇷🇸Serbia levmyshkin Novi Sad, Serbia
Hi aanjaneyam, yes, you will be able to use unlimited Paragraph field, not sure about Entity Reference Revision, there are different field widgets:
https://www.drupal.org/project/paragraphs →
https://www.drupal.org/project/entity_reference_revisions →There are some separate workflows for translations using Paragaph fields:
https://www.drupal.org/project/paragraphs_asymmetric_translation_widgets →
https://www.drupal.org/docs/contributed-modules/paragraphs/multilingual-... →
And translation workflow is built with Paragraph field widget.> e) Also enable manage layout using Layout Builder.
In terms of Paragraphs (EPT) you can use similar approach with Layout Paragraphs:
https://www.drupal.org/project/layout_paragraphs →You can even find Drupal distributive with 'premium' themes and add EPT modules in it:
https://themeforest.net/category/cms-themes/drupal/corporate?term=layout... - 🇬🇧United Kingdom aanjaneyam
Great, I will use EPT with layout paragraphs module for content types.
Additionally, if needed I can also use EBT blocks to put reusable block instances (created individually via block library) in regions of theme or pages if needed.
Many thanks for a detailed and helpful response. Cheers.