Skip to main content

Templates

Templates help change the structure and appearance of your project without altering its source code. Components can be initially described in your project's code and marked with templates created in the OneEntry Platform. They can differ in design solutions, behavior, etc. By switching templates, you can influence the operation of your entities, whether it's a page, block, form, etc.

To start working with templates, open the "Settings" section and then go to the "Templates" subsection. This section contains a list of already created templates, as well as a form for creating new ones.

Creation​

In the creation form, specify:

  • Name - A non-unique string.
  • Marker - A unique string.
  • Type - The type of entity from the list to which the template can be applied.

After filling in the details, click the "Create" button.

Types​

Templates differ by the type of entity to which they can be added.

In the Type list, types are grouped by modules. The following types are available:

  • Common block — regular block
  • Product block — product block
  • Similar products block — block of similar products
  • Similar Products to Cart Block — block of products similar to those in the cart
  • Similar Products to Wishlist Block — block of products similar to those in favorites
  • Cart Complement Block — block of products that complement the cart
  • Repeat Purchase Block — block for repeat purchases
  • Frequently ordered products block — block of frequently ordered products
  • Trending Products Block — block of trending products
  • Recently Viewed Block — block of recently viewed products
  • Personal Recommendations Block — block of personal recommendations
  • Slider — slider
  • Common page — regular page
  • Catalog page — catalog page
  • Product — product page
  • Product preview — product preview
  • External page — external page
  • Error page — error page
  • Form — form
  • Discount — discount

Settings​

Select the template you want to configure from the general list of templates and click on the gear icon Optimize images to enter edit mode.

You can change:

  • Name - A non-unique string.
  • Marker - A unique string.
  • Type - The type of entity from the list to which the template can be applied.

Deletion​

Select the template you want to delete from the general list of templates and click on the delete icon Edit to enter edit mode. Confirm the action in the dialog box.