This guide discusses how to create a module on Insites.
To follow this tutorial, you must understand basic Insites concepts, the prescribed development workflow, and Modules:
Creating a module is a three-step process:
Create two directories inside the
This is the structural overview of the module you'll create:
Create a GraphQL query that pulls a list of Records.
modules/admincms/private/graphql/get_records.graphql
Create another GraphQL query that pulls a list of pages
modules/admincms/private/graphql/get_pages.graphql
Create a page for your module:
modules/admincms/public/views/pages/admin.liquid
Use the queries as usual, but prefix the name with the module name.
The only difference between this code and the code of a regular Instance is that this module code is split
into public and private folders, and if you'd pull the code when it's installed on an Instance,
you would get a structure like this:
Please visit the following links for more information on Modules:
Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.