Spectrum Spatial (SSA/LIM)

Expand all | Collapse all

Template Designer 12.2.1

  • 1.  Template Designer 12.2.1

    Posted 10-29-2018 22:59
    I am using Template Designer 12.2.1 and I want to add a deep link to a website using Parcel # or property #


  • 2.  RE: Template Designer 12.2.1

    Pitney Bowes
    Posted 11-01-2018 12:23

    Hi Noman

     

    If there is a field in your data that contains a hyperlink to the web page link then you can add this column to the template in the template designer and choose “Show as” hyperlink. For this to work the link in the data will need to include the property ID for that specific record in the data. For example, if your property record is 1234 then the link for that record must include the ID in it – for example http://myserver/properies/main.html?id=1234

     

    If there is no hyperlink field in the data and you do not want to add such a field, then you will need to customise the template manually. We can provide an example if needed.

     

    I did try adding a Text item to the template designer (rather than a column) and entering the HTML of a link like this.

     

    Details: <a href="http://server/properties/main.html?PropertyID={PropNumber}">Link to Details</a>

     

    But the Anchor tag is not rendered as HTML and is shown as plain text – so it is not clickable. 



  • 3.  RE: Template Designer 12.2.1

    Posted 11-01-2018 17:29

    I worked it out with the help of Ruchi from Pitney bowes. There are ​there files for each template in customerconfigurations\analyst\theme\infotemplates.

    We need edit html file only, put this code after <div> and it will comes up on left for that table ( For examply property). Only

    <a target="_blank" rel="noopener noreferrer" [attr.href]="website?propertyIdentifier=' + data.feature.Columnname.value">

    Click here to download

    </a>

    Table which contain column must be added in template to make it work