<standard:link>
AJAX
ajax:delayedload ajax:event ajax:navigation ajax:region
Data
data:calendar data:column data:eventrepeater data:postrepeater data:productbrandrepeater data:productcategoryrepeater data:productrepeater data:repeater data:table data:template data:tree
Forms
forms:address forms:captcha forms:checkbox forms:checkboxgroup forms:codeeditor forms:combobox forms:datepicker forms:dialogbox forms:editbox forms:fileupload forms:form forms:hidden forms:money forms:officeuseregion forms:option forms:password forms:paymentmethod forms:radiobutton forms:radiobuttongroup forms:row forms:searchbox forms:signature forms:slider forms:spinbox forms:submitbutton forms:submitimage forms:submitlink forms:successcontent forms:textarea forms:timepicker
Layout
layout:gallery layout:productgallery layout:rotator layout:stepper layout:stepperpanel layout:tablist layout:tablistitem
Logic
logic:dependency logic:else logic:if logic:include logic:parse logic:variable
Navigation
navigation:breadcrumbs navigation:item navigation:primary navigation:secondary
Personalisation
personalisation:firstname personalisation:fullname personalisation:lastname personalisation:other
Standard
standard:embed standard:icon standard:image standard:link
ATTRIBUTES
EXAMPLES
standard:script standard:tooltip standard:video
Templates
templates:button templates:card templates:column templates:fancybox templates:faq templates:flexlayout templates:header templates:row templates:section templates:styles templates:teammember templates:testimonial
Regions
regions:content regions:contentadditional regions:security regions:togglable
Third Party
thirdparty:googlemap thirdparty:googlemapmarker

`<standard:link>` </...>

Places a hyperlink that can execute a specific onclick function

Content

inline-elements
The text to turn into a link.

Attributes

- `confirmMessage`
string
The message to be displayed for confirmation on click
- `href`
string
Href

Allows the override of the url when clicked.
- `id`
string
(Required) Give this control a unique id. Can be accessed in the client DOM (eg, document.getElementById('myid') or in the server DOM using [? $myid ?] or [? $('myid') ?]).
- `onSuccessRedirect`
string
The URL to be redirected to upon the success of the actions of the link.
- `onSuccessToastMessage`
string
The toast message to be displayed upon the success of the actions of the link.
- `openDialogId`
string
When clicked, open a dialog box with this id. The dialog box must be defined on the same page as this link.
- `openDialogPage`
string
When clicked, open a dialog box with this page in its contents.
- `openDialogPageWidth`
string
The width of the dialogbox opened in pixels, when opendialogpage is set.
- `onClickServer`
callable
Called when the button is clicked

Examples

ConfirmMessage Example

Shows a JS confirm dialog on click.

HTML:

<standard:link confirmmessage="Are you sure you want to delete this?">Delete</standard:link>

Run Example

OpenDialogPage Example

Opens a dialog box by including a page's contents.

HTML:

<standard:link opendialogpage="/legal/terms-of-use/">Terms & Conditions</standard:link>

Run Example

OpenDialogId Example

Opens a dialog box by its id.

HTML:

<forms:dialogbox id="mydialog"> <h1>Dialog Box</h1> </forms:dialogbox> <standard:link opendialogid="mydialog">Open Dialog</standard:link>

Run Example