You are here:
< Back

Create a Dynamic Widget


You can create your own custom widget using the NodeJS engine. In this case the script and the HTML content is inserted into an iFrame and displaying whatever is defined within it.

To embed your NodeJS widget you have to use the custom element widget and parameter as this:

To get the parameters in the NodeJS script:


const renderWidget = (req, res) => {
const params = req.query;

const data = {
token: params.token || "",

res.setHeader('Content-Type', 'text/html');
res.render("instagram-widget/index", data);

Ejs (HTML)

<script>(function(){window.Data = {token: "<%=token%>" }());</script>