Add Photo to Results Window
I would like to embed a related photo but I need the photo to appear with the feature long description, meaning in the results window.
Can someone please provide a sample on how to do this?
Thx...Walter
-
Hi Walter,
You can edit your feature description to include:
<img class="my-feature-images" href="<server/featureimages>/{id_field_token}.png"></img>
Where <server/featureimages> is the directory to the images and {id_field_token} is the field which stores a linked ID to the images.
You then should set allowUnsafeContent to equal true on the viewer configs or by setting it in REST Manager.
The 'my-feature-images' class on the img tag will allow you to set some CSS and resize the images accoring to each shell.
Cheers,
Kevin
0 -
Kevin,
Thanks so much for your reply.
Walter
0 -
Is it possible have an UNC path in the field that the token is referencing?
Thanks!
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare