Skip to main content

Advanced CRM support

You can enable additional Briskine features if you're running your own web-based CRM, helpdesk, or similar software. You'll need to make minor source code (HTML) additions to enable them.

Use custom variables

Template variables are only available on certain websites by default. You can add your own custom variables by setting a custom attribute on the current active editable element.

Set the data-briskine-variables attribute on the current text area, to use those values when parsing the templates.

The value of the attribute must be an URI encoded JSON value. The JSON itself can contain any key and value you'd like to use in your templates.

For example, you can add the custom variable in your template, by using a JSON like {"custom":"custom-value"}. You'll then need to stringify and encode the JSON. With JavaScript, this will look like:

encodeURI(JSON.stringify({custom: 'custom-value'}))
// will return "%7B%22custom%22:%22custom-value%22%7D"

The attribute value will then look like data-briskine-variables="%7B%22custom%22:%22custom-value%22%7D".

You can then use the variable in a template like My custom value is {{custom}}, which will insert My custom value is custom-value.

Please reach out at support@briskine.com if you're having any difficulties with these features, or if you need any other help.