You can create a page on Insites using one of two ways:
The primary objective of this guide is to showcase the process of building a page via code.
A summary of the steps needed to create a page using the Instance Admin are as follows:
For more information on creating a Page using the Instance Admin, please visit our documentation regarding Content.
To follow the steps in this tutorial, you must have the insites-cli installed, an environment configured, and the codebase set up (or at least have an
Creating a page is a four-step process:
You should place pages into the
If you are starting from scratch (without having created the codebase), navigate to the
If you have already created the codebase, you can skip this step and locate your
Create a Liquid file called
Edit the
Find a sample page file with explanations below:
app/views/pages/index.liquid
Explanation:
Save your page file.
Deploy or sync your changes, and check the source code of your homepage. The layout file with the page content injected into it is like this:
Congratulations! You have created a page file. Now you can add new pages at custom URLs: Adding a New Page at a Custom URL
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.