Zum Hauptinhalt springen

Template placeholders

Template placeholders serve as data-based placeholders within the WEBSALE WebComponents. They are not standalone UI components but only output data without generating a specific design or styling. These placeholders provide content such as the number of results ({{result.total}}), the currently visible results ({{result.from}}{{result.to}}), or other dynamic values.

Overview of the template placeholders

  • Number of results — The display of the number of search results per page can be done with the values result.from, result.to, and result.total. This enables an overview following the scheme “1-10 of 150 products”. This display is updated automatically when a new page is opened or a filter is applied.
  • Product display — The data for displaying products returned as part of the search or filtering comes from a JSON object (response) delivered by the search API. This object contains all product data configured in the search module.