Embedding a widget
Place a widget configured in the console on your website.
A widget is a list or calendar you configure in the CIXTRA console and place on your own website. It needs no API key: it is tied to its widget id and, if you entered allowed domains for it in the console, it only answers on those domains. Without allowed domains, any website may show it.
The snippet
Copy the snippet from the console (Widgets → your widget → Embed code). It looks like this:
<script async src="https://api.cixtra.app/widget/apollo-loader.js"
data-config-id="YOUR_WIDGET_ID" data-site="YOUR_SITE_ID" data-api-url="https://api.cixtra.app"></script>
<superfrey-widget config-id="YOUR_WIDGET_ID"></superfrey-widget>Put the <superfrey-widget> element where the widget should appear. The script is async: it never holds up the rest of your page. The script address never changes, so a pasted snippet works for as long as the widget is published.