Wix allows non-technical users to easily create fully-functional websites. CloudTables can be embedded directly into a Wix page to add a comprehensive table component, including its full read / write interface.
Please note that to be able to use the embedded tables from a self-hosted CloudTable page in Wix pages, your CloudTables instance will need to be accessible from the internet.
To embed a CloudTable into a Wix page, we will use the serverless client-side embed method. This involves placing a piece of Javascript on the page that will insert the CloudTable for you.
To get started, view the page on which you wish to embed the table, and click "Add", and then "Section to Page":
Click on "HTML Embed" and click on the template that best suits your style. This will embed the element into the page, and you can customise the embed by clicking on it:
Once finished, click on the "Settings" button in the "HTML" line.
Insert the following HTML into the input box with the heading "PASTE YOUR CODE (HTTPS ONLY)" - changing {datasetId}
, {apiKey}
and {clientId}
to suit (see below):
<script
src="https://ip-or-hostname/io/loader/{datasetId}/table/d"
data-apiKey="{apiKey}"
data-clientId="{clientId}"
></script>
where:
{datasetId}
- the ID of the data set you'd like to show (see the data set Embed tab for this information){apiKey}
- the API key which will allow access (and thus assign the roles that can be used for access).{clientId}
- a unique id for the client accessing the table on your system. This is optional, but useful for tracking requests in CloudTables' analytics. For example you might use web
as the id if you embed it in a public web-page, or an id specific to that page. A data-clientName
parameter can also be specified, but that is more useful for the server-side API key interaction detailed above when you are using a user login system.Finally, adjust the height of the element so the full table can be seen, and click "Back" - you'll see the fully editable CloudTable on your page!