Skip to main content

Creating a Regular Block

In the introduction, we mentioned that in the Headless CMS OneEntry there are three types of blocks:

  • For a regular block
  • For a block of similar products
  • For a product block

In this chapter, we will discuss creating a block of the type "For a regular block".

1. Creating a Block

To create a block of the type "For a regular block", you need to enter the block name in the Name field, select "For a regular block" from the dropdown list in the Type field, and enter a unique

Marker
in the "Marker" field. After clicking the "Add" button, the block will appear in the blocks table under the category "For a regular block".

2. Editing a Block

To edit a block, you need to click the "Edit" button in the "Actions" column of the blocks table.

Edit

For blocks of the type "For a regular block", there are three tabs available during editing:

  • Basic data
  • Attributes
  • Linked pages

Basic Data

The "Basic data" tab contains two input fields: Name and

Marker
, which are the parameters of the block that can be changed while on the "Basic data" tab.

Attributes

The "Attributes" tab contains two dropdown lists for selecting a Template and a Set of Attributes.

After selecting a set of attributes, you need to fill in the values. In our case, this is the attribute "number", which has the type "Integer". We will specify "44" as the value.

Linked Pages

The "Linked pages" tab contains a search bar for

pages
and a tree view list of
pages
. This tab is used to link the edited block with
pages
. To establish a link, you need to select
pages
from the list of
pages.
In the screenshot below, the block "new_block" is linked to the
pages
"catalog" and "we".

Linked pages

.