Details
-
Bug
-
Resolution: Done
-
Medium
-
3.3.38, 4.6.4
-
None
-
Yes
Description
Some attribute types (like embed, embed_video and relation_list) in page builder opens the UDW in order to let the user select content.
Currently you need to override attribute and/or block config templates in order to change UDW config when reusing those attribute types or if you want to change the UDW behavior of the build-in blocks ( like banner or embed ).
This could be improved for the build-in attribute types that opens the UDW by supporting a new option udw_config_name in the yaml configuration:
# Alter build-in block collection: attributes: locationlist: # This build-in block uses the locationlist attribute type options: udw_config_name: collection_folder_only # New custom block that uses embed attribute with custom UDW config custom_block_blog_post: name: Blog Post category: default thumbnail: 'bundles/ibexafieldtypepage/images/thumbnails/embed.svg' views: default: { name: 'Default block layout', template: '@IbexaFieldTypePage/blocks/embed.html.twig', priority: -255 } attributes: contentId: name: Content type: embed options: udw_config_name: blog_post_single validators: not_blank: message: You must provide value regexp: options: pattern: '/[0-9]+/' message: Choose a Content item