Creating a page (screen)
Creating a
- Basic data
- Categories
- Attributes
- Blocks
- Forms
1. Basic data
The "Basic data" tab contains three sections:
-
Types of pages - this is the type of the created
page. The following types are available:- For usual pages - type for regular pages, such as home or about;
- For catalog pages - type for pagesthat will contain a catalog, such as products or multimedia items;
- For error pages - type for pageswith errors. The error code must be linked in the Additional settings;
- For catalog products - type for pagesthat will contain a specific item from the “Catalog” module, such as a product or multimedia item;
- For Order - type for pageswith an order repository.
- For usual pages - type for regular
-
Details contains three input fields: "Page title" - the title of the
page, "Page URL" - a unique identifier by which thepagewill be called later, and "Name of the menu item for the page" - this is the name of thepagethat will be displayed in the "Menu". The "Menu" block is described in the following chapters. -
Editor - this block allows you to add the actual content for the
page. You have the option to use two types of editors: text and markdown.
By default, the text editor is selected; to use markdown formatting, check the checkbox:
The editor also has the option to optimize uploaded images, which is enabled by default. There is also a checkbox for this:
Documentation for the text editor is described here. For markdown - here.
2. Categories
The "Categories" tab is necessary for creating a tree structure of the application and establishing parent-child relationships between
For example, for the
You can also see the nesting on the main screen of the "Pages" module, where a list of all created
3. Attributes
The "Attributes" tab contains two dropdown lists for selecting a Template and a Set of attributes. "Attributes" is a fundamental concept of Headless CMS OneEntry, which is described in detail in the following chapters.
After selecting a set of attributes, you need to fill in the values. In our case, this is:
- The attribute "title," which has the type "Text with Header." As a value, we will specify "Some example title"; there is also a field for this attribute - text that will be displayed in case of an error, we will specify "example error message";
- A field for uploading an image (img). We will upload the OneEntry logo here. We also have the option to optimize the uploaded image by clicking on "Optimize uploaded images" and change the image parameters directly in Headless CMS OneEntry;
- A field for integer values "something_integer." We will add a value equal to "2024."
4. Blocks
The "Blocks" tab contains a dropdown list for selecting blocks and a list of selected blocks. Blocks can be moved (sorted) just like
Configure
Delete
5. Forms
The "Forms" tab contains a dropdown list for selecting forms and a list of selected forms. Forms can be moved (sorted) just like
Edit
Delete
.