exit-icon
Request a callback
Request a callback

Enter your number and one of our friendly ecommerce experts will be in touch. All fields are required.

Speak to our experts today 0333 004 0333
Speak to one of our experts today or callback-group-circleRequest a Callback
User Guides

EKM Tag: [ekm:dialog_trigger]

When combined with the [ekm:dialog] tag, this tag can be used to output a stylable dialog.

  • Tag Information
Basic Use (Open on Page Load)
This tag will cause the linked dialog to open on page load.

[ekm:dialog_trigger]
    dialog_id='some_unique_id';
    type='auto_trigger';
    action='show';
[/ekm:dialog_trigger]
                                
Basic Use (Button)
This tag outputs a simple button that will trigger the linked dialog when clicked.

[ekm:dialog_trigger]
    dialog_id='some_unique_id';
    type='button';
    action='show';
    output_start='Before the button';
    output_item='Button Text';
    output_end='After the button';
[/ekm:dialog_trigger]
                                
Tag Attributes
Output Start
output_start='';

Specify any text or html to output before the dialog trigger.

Value
Description
{user defined}
Define any opening HTML to go before the dialog trigger.
Type
type='[type]';

Specify any text or html to output before the dialog trigger.

The type attribute can be any of the following...
auto_trigger - Open the dialog on page load
link - Output an <a> tag that will open the dialog on click
button - Output a <button> tag
function_name - Output a javascript function definition with a name like [action]_[dialog_id]_dialog

Value
Description
[type]
Sets what type of trigger this should be.
Action
action='[action]';

Specify which action should be triggered.

The action attribute can be any of the following...
show - When this trigger is fired, the linked dialog will be shown
hide - When this trigger is fired, the linked dialog will be hidden

Value
Description
[action]
Sets which action should be triggered.
Output Start
output_start='';

Specify any text or html to output before the dialog trigger.

Value
Description
{user defined}
Define any opening HTML to go before the dialog trigger.
Output Item
output_item='';

Specify the text to show for link and button type triggers.

Value
Description
{user defined}
Outputs the HTML to go within the dialog trigger.
Output End
output_end='';

Specify any text or html to output after the page type.

Value
Description
{user defined}
Define any opening HTML to go after the dialog trigger.