I want to do add a field as reference to a bloc in a paragraph. The block was created using Views module.
Asked
Active
Viewed 1,602 times
1 Answers
1
There are at least tow ways :
1 - Using Views field formatter
2 - As views in Drupal 8 are entities you can use entity reference field to link the view then expose it in your template

h.aittamaa
- 329
- 3
- 4
-
I don't like it the idea of the module itself, maybe i have to try the second way. Thanks. – khaled_webdev May 18 '18 at 08:18
-
Yes, we can use entity reference field, choose block type. Maybe a disabled attached block, or i found a some one else solution by creating a region named "hidden" that will be not used in template but just to get the block in autocomplete of the referenced field. – khaled_webdev May 24 '21 at 09:29