You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
171,176d170
< if ($mediainstanceOf File) {
< $uri = $media->getFileUri();
< if ($uri) {
< return$image_style->buildUrl($media->getFileUri());
< }
< }
Once I had dgi_image_discovery field added to the Solr index, the README.md suggests adding the virtual field "DGI Image Discovery Discovered Image" https://github.com/discoverygarden/dgi_image_discovery/blob/main/README.md?plain=1#L77 but that field is from Content datasource not the indexed field. I added "DGI Image Discovery" field to get URL from dgi_image_discovery in the search index, but then need to wrap that to become a thumbnail image, e.g. Rewrite results, "Override the output of this field with custom text", set Text=<img src="{{ dgi_image_discovery }}"/>.
The text was updated successfully, but these errors were encountered:
Thank you for sharing this module. I have it working but I needed to change a few things:
dgi_image_discovery_update_8001()
creates an Image field referencing a file not a media type.I needed to alter
src/Plugin/search_api/processor/DgiImageDiscovery.php
with:dgi_image_discovery
field added to the Solr index, the README.md suggests adding the virtual field "DGI Image Discovery Discovered Image" https://github.com/discoverygarden/dgi_image_discovery/blob/main/README.md?plain=1#L77 but that field is from Content datasource not the indexed field. I added "DGI Image Discovery" field to get URL fromdgi_image_discovery
in the search index, but then need to wrap that to become a thumbnail image, e.g. Rewrite results, "Override the output of this field with custom text", set Text=<img src="{{ dgi_image_discovery }}"/>
.The text was updated successfully, but these errors were encountered: