Skip to main content

Creating a page (screen)

Creating a

page
consists of four blocks:

  • 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:

    1. For usual pages - type for regular
      pages
      , such as home or about;
    2. For catalog pages - type for
      pages
      that will contain a catalog, such as products or multimedia items;
    3. For error pages - type for
      pages
      with errors. The error code must be linked in the Additional settings;
    4. For catalog products - type for
      pages
      that will contain a specific item from the “Catalog” module, such as a product or multimedia item;
    5. For Order - type for
      pages
      with an order repository.
  • Details contains three input fields: "Page title" - the title of the

    page
    , "Page URL" - a unique identifier by which the
    page
    will be called later, and "Name of the menu item for the page" - this is the name of the
    page
    that 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:
    Markdown
    The editor also has the option to optimize uploaded images, which is enabled by default. There is also a checkbox for this:
    Optimize images

    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

pages
.
For example, for the
page
demo, the following nesting was created: "catalog" -> "shop" -> "demo"

Categories

You can also see the nesting on the main screen of the "Pages" module, where a list of all created

pages
is presented. In this list, you can also manage the nesting by dragging
pages
in the table.

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.

Attributes

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

pages
. There is also an action column for each block:

SettingsConfigure

Delete Delete

Attributes

We will discuss blocks in detail in the following chapters

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

pages
. There is also an action column for each form:

EditEdit

Delete Delete

Attributes

We will discuss forms in detail in the following chapters

.