{link}
Sample Usage
Product ID: {formtext: name=id; default=123}
You can view the product here: {link: https://example.com/product/{=id}/view }Product{endlink}
You can view the product here: {link: https://example.com/product/{=id}/view }Product{endlink}
_
Settings
Setting Name Type Description Positional text The URL for the link. General Command Settings trim yes/no/left/right If yes
whitespace is removed before and after the command. If left
, only whitespace to the left is removed. If right
, only whitespace to the right is removed.
Setting Name | Type | Description |
---|---|---|
Positional | text | The URL for the link. |
General Command Settings | ||
trim | yes/no/left/right | If yes whitespace is removed before and after the command. If left , only whitespace to the left is removed. If right , only whitespace to the right is removed. |
The link
command creates links in snippets where the URL may change based on some data.
The first positional setting that a URL for the link. You're able to use the {=} (Formula Command) here to build dynamic links.
See the Blaze Formula Reference for more information on defining custom URLs based on dynamic data.
The endlink
command
If you leave out the optional endlink
command, then the link will display as is. If you insert content between the link
and endlink
the link will display with the inserted content instead.
Including a static link
If you want to include a link in the snippet that does not change based on some data, rather than using the link
command you should use the link button in the styling toolbar.