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

Bring back (block type) in linked element selection #58

Closed jalamanderman closed 11 months ago

jalamanderman commented 11 months ago

Since the introduction of tag field. It appears the block type and ID is no longer appended in the dropdown. This was a rather useful feature for content editors where different block types share the same name.

Is is possible to bring it back?

Screenshot 2023-10-10 at 11 41 48 AM
wilr commented 11 months ago

@jalamanderman This is now managed via an extension hook updateVirtualLinkedSummary. Type and ID is included already in the latest release but if you want to tailor it here is the hook

https://github.com/dnadesign/silverstripe-elemental-virtual/blob/main/src/Extension/BaseElementExtension.php#L118-L133