Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-8245

As a developer I want to easy limit content types in UDW when creating new page builder blocks

    XMLWordPrintable

Details

    • Icon: Feature Feature
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Customer request
    • 3.3.38, 4.6.4
    • Experience
    • 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
      
      

       

      Designs

        Attachments

          Activity

            People

              vidar.langseid@ibexa.co Vidar Langseid
              vidar.langseid@ibexa.co Vidar Langseid
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: