Skip to main content

Creating a product block

"Product block" is the third block type in OneEntry.

1. Creating a block​

To create a block of the "Product block" type, enter its name in the Name field, select "Product block" from the Type dropdown, and enter a unique a unique identifier used to retrieve the entity in the Marker field. After you click Add, the block appears in the blocks table under the "Product block" category.

2. Editing a block​

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

Edit

Blocks of the "Product block" type have five tabs when you edit them:

  • Basic data
  • Attributes
  • Categories
  • Linked pages
  • Version History

Basic data​

The "Basic data" tab has the following forms:

  1. Name: changes the block name.
  2. Marker: changes the block's a unique identifier used to retrieve the entity.
  3. Individual settings:
    • Quantity: the number of items in the block (integers only).
    • Sorting type for block items: by date or by name.
    • Sort order for block items: ascending, descending, or no sorting.
    • Items per row: the number of items in one row of the block (integers only).
  4. Additional conditions: lets you add conditions for sorting blocks. To apply sorting, select the "Additional conditions" checkbox and choose a sorting option (by name, price, or date). Then enter the sorting values:
    • Name: enter a product name or ID. As you type, a list of matching products appears, and you can select the product you need from it. If you enter only digits, the product with that ID appears first in the list.
    • Price: two fields, for the lower and upper price.
    • Date: two fields where you specify the date range.
      You can reorder the selected blocks by dragging them.

Attributes​

The "Attributes" tab has two dropdowns for selecting a Template (opens in a new tab) and a Set of Attributes (opens in a new tab).

After you select a set of attributes (opens in a new tab), fill in the values. In this example, it's the number attribute of type Integer, and we set its value to 44.

Categories​

The "Categories" tab has a or screen search bar and a tree of or screens intended for or screens that contain products. Use this tab to link the block you're editing to or screens: select the or screens in the list of or screens In the screenshot below, the "block_product" block is linked to the "catalog" or screen.

The "Categories" tab is unavailable while the "Name" option (the name condition) is selected in the additional conditions on the "Basic data" tab. With price and date conditions, the tab works.

Categories

Linked pages​

The "Linked pages" tab has a or screen search bar and a tree of or screens. Use this tab to link the block you're editing to or screens: select the or screens in the list of or screens In the screenshot below, the new_block block is linked to the "catalog" and "we" or screens.

Linked pages