Forum Discussion

jchapman's avatar
14 years ago

Building URLs in System Emails

We're attempting to update some of the email templates through Studio but unable to find one specific variable for an email. We'd like to add a link to the email to point to the user's profile page. The difficulty is that our platform is currently partial SSL. We have tried both of the builds below with no success.

 

This directs us back to the main community page since the URL does not include https, only http.

<a href="${emailUrls.getTapestryUrl("support/usersupportpage/user-id/$user.id")}" target="_blank">

 This doesn't build a URL at all

<a href="${user.webUi.url}" target="_blank">

 

Is there anywhere tthat outlines the available codes that can be used in emails that we just haven't found yet? Thanks in advance for any advice.

  • In case someone else had this same problem locating docs on customising email templates, specifically emailURLs 

     

    If you want to add images link from assets into your email templates you can us this call 

     

    <img src="${emailUrls.getFrontPageUrl()}../html/assets/<name-of-asset>">

     

    ;)

    • ChiaraS's avatar
      ChiaraS
      Lithium Alumni (Retired)

      The following should also work: 

       

      <img src="http://$hostname/html/assets/<name-of-asset>" />