- First commit to issue fork.
- 🇧🇪Belgium Mschudders
Created the branch + applied the patch from: økse to that branch.
Credits to økse
- @mschudders opened merge request.
- 🇧🇪Belgium økse
The patch is a first proposition to come to a solution but isn't perfect by any means hence why I didn't upload it so far.
Remaining room for improvement:
- All the fields on the index (also the content type based added fields) are available to get the attachments indexed from. This should be improved to only allow non content type relevant fields
- Changing the machine name of the search api attachments source field on the index does cause issues. This should definitly be improved to have a more flexible behaviour.
- 🇧🇪Belgium økse
I made an update to only allow non content type relevant fields (layout builder specific) to be indexed instead of all the fields coming from the index.
Because of this, you don't longer need to use the Layout Builder Search API → contrib module (sorry maintainer) in order to get the reference as a field onto the search index. The update makes sure that referenced fields that have a reference to a file/media entity within block types in layout builder are available as indexable fields to get possible attachments indexed from.
After fixing this, the machine name naming convention is no longer an issue.
- Status changed to Needs review
over 1 year ago 12:39pm 3 April 2023 - 🇧🇪Belgium tim-diels Belgium 🇧🇪
When you provide an (updated) patch, you should set the issue to Needs Review to make it clear people can test this.
- 🇧🇪Belgium tim-diels Belgium 🇧🇪
Removed not needed use statements.
- 🇧🇪Belgium tim-diels Belgium 🇧🇪
Fixed the PHP CS issues form this issue.
- Status changed to RTBC
over 1 year ago 1:28pm 3 April 2023 - 🇧🇪Belgium tim-diels Belgium 🇧🇪
Tested and works as expected. Thanks for the work done.
- 🇧🇪Belgium kriboogh
Tested, works.
MR diff patch added for use in composer.