i am currently refactoring my image structure a little bit and have a problem to find the best way to go.
This is my Website/panel structure.
I have different blocks with different elements. Inside each element i have a global_page_image block where i handle all the image stuff.
fields: modules: label: Modules type: blocks fieldsets: content__image_big: fieldsets/content__image_big <- that is for example block 1
fields: toloadimg: type: blocks columns: 1 max: 1 fieldsets: image_global: fieldsets/subfieldsets/image_global image_page: fieldsets/subfieldsets/image_page <- want to remove this
fields: image_global_data: type: files query: site.images.filterBy('extension', '!=', 'webp') #queries global images layout: list uploads: template: image parent: site # to upload to the global site images
All of this works fine at the moment, but it annoys me a little that the blocks are nested:
Is there a way to prevent that the blocks are “visually” nested without duplicating code? I love how the image block in the startkit is and would love to have a clean and easy panel like it is there.
For example i could add the image_global directly inside the content__image_big block, but if i want to make change there i have to go inside every other block where i use image_global. Any idea?