
components.stringify.editors.url.html Maven / Gradle / Ivy
Url Template Help
Url Template Help
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 — The uri-escaped value
-
rawValue — The unescaped value
Examples
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
Label Template Help
Label Template Help
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 — The fields value
-
url — The formatted url
Examples
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy