If a field only contains part of a url then a "Url Template" can be used to format the value as a complete url. The format is a string which uses double curly brace notation {{ }}
to inject values. The following values can be accessed:
Value | Template | Result |
---|---|---|
1234 | http://company.net/profiles?user_id={{value}} | http://company.net/profiles?user_id=1234 |
users/admin | http://company.net/groups?id={{value}} | http://company.net/groups?id=users%2Fadmin |
/images/favicon.ico | http://www.site.com{{rawValue}} | http://www.site.com/images/favicon.ico |
If the url in this field is large, it might be useful to provide an alternate template for the text version of the url. This will be displayed instead of the url, but will still link to the url. The format is a string which uses double curly brace notation {{ }}
to inject values. The following values can be accessed:
Value | Url Template | Label Template | Result |
---|---|---|---|
1234 | http://company.net/profiles?user_id={{value}} | User #{{value}} | User #1234 |
/assets/main.css | http://site.com{{rawValue}} | View Asset | View Asset |