Hoppa till huvudinnehållet

Add images to workflow results

Kommentarer

1 kommentar

  • Amanda Frech

    If you're looking for it to show up in the results, it might be more of an Essentials configuration than workflow configuration. If the layer exists on the site, you would want to make those changes in the Feature Description in Essentials Manager. Here's a couple ideas:

     

    Reference a static url attribute like you mentioned, and put in in an img html tag in the feature description. You'd have to use a valid http or https address rather than the network share location you have in the image above. Feature description would contain something like this:

    <img src="{URL_IMAGE}">

     or

     

    Add an img tag for each yes/no field into the feature description. Have a folder structure like this for the images hosted on your server:

    • rootfolder > DogPark > yes.png
    • rootfolder > DogPark > no.png
    • rootfolder > DiscGolf > yes.png
    • rootfolder > DiscGolf > no.png
    • etc

    yes.png would contain the desired icon for each feature type, and no.png would be an invisible or white 1px square. Technically you'll be showing images regardless of whether it's a yes or a no, but you're only going to see the "yes" ones.

    Feature description would look something like this:

    <img src="https://myserver.com/myimagefolder/DogPark/{DogParkAttributeName}.png"><img src="https://myserver.com/myimagefolder/BoatLaunch/{BoatLaunchAttributeName}.png"> (etc)

     

     

    Here's the reference for using field replacement tokens in feature descriptions:

    https://docs.geocortex.com/essentials/latest/admin-help/Default.htm#ge/admin/replacement-tokens.htm#Field_Tokens%3FTocPath%3DAbout%2520Configuration%7CReplacement%2520Tokens%7C_____5

     

    If your ShowResults activity in the workflow has the correct map service id and layerid or name configured, it'll use the feature description or long description from Essentials. Otherwise you'll need to write it into the description format/long description format input on the activity instead.

    0

Du måste logga in om du vill lämna en kommentar.