Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Disclaimer Shortcode

This shortcode can be used anywhere on the site. It does not need to be initialized.  You simply need to add it to your page to display it.

Disclaimers are modal windows that are shown upon landing on a particular page. If the user cancels out, they are redirected to the root ( / ) page. They show information about what the user is agreeing to in order to continue.

The available options are: 

OptionTypeDefaultValuesPurpose
namestring

This is the disclaimer to show. It comes from the "systemRegion" value from the Pages table.

dismiss

string"session"session, page

How long to dismiss the disclaimer.
session = once dismissed, the user will not see again until they log out and log back in.
page = Each time they reload the page, the disclaimer will appear again.

showstring"onload"

onload, {selector}

onload is by default.

Selector is used when the intention is the disclaimer only shows when clicking on the item defined by selector.
for example. For vehicles, the value will be
.add-vehicle
and the disclaimer will only show if

Shortcode Example- [disclaimer name=vehicleDisclaimer dismiss=session show=".add-vehicle"]


  • No labels