dnadesign / silverstripe-elemental-virtual

Allows Content Blocks to be reused between pages.
BSD 3-Clause "New" or "Revised" License
7 stars 26 forks source link

Make this block work 'inline' #48

Closed micschk closed 1 year ago

micschk commented 2 years ago

Having to open blocks out of context in order to edit them is so 2014 (when we were using GridField). So in order to make ElementVirtual work inline we basically just need a field which works with the 'modern' react rendering. I've managed to make this work with TagField as per the screenshot below. Only issue is that TagField currently contains a bug which makes it unusable with setIsMultiple(false).

I'm preparing a PR which makes this field work inline but for the time being it allows you to select multiple items (of which only the first will be effective). When the above mentioned bug has been fixed, a line of code can be uncommented which will restrict editors to a single selected item.

Screenshot 2021-12-16 at 07 35 36