2. Standard Parameters

Some parameters are required for each Layout Block (template, model, ...) and others are optional (position, bx-hit, ...)

The only required parameter is the parameter "template" which should indicate the name of your template. It can be a name (like product_list) or a file (like 'path.file.html'), the only thing important is that it is defined in a way which is matching your front-end integration.

An optional parameter to consider is "position". If you don't decleare any, the Layout Block will be returned in the Boxalino Narrative API resopnse as one of the element of the parameter "blocks". But if you define a position (e.g.. "left") all returned Layout Blocks will this position will be in the parameter "left" and not "blocks". This is handy to separate several columns in your page (e.g.: facets on the left) or if you have Layout Bocks specifically for special zone of the page (header, footer, menu, ...) which you want to retrieve separately from the main Layout Blocks.

The Special Boxalino Blocks start all with bx- (bx-hits, bx-hit, bx-pagination, bx-facets, bx-hitCount, bx-search-title, bx-sort, bx-acQueries and bx-acQuery). Declare them in template which should retrieve these information in special parameters (e.g.: the list of products should have "bx-hits" and the template for a specific product in the list should have "bx-hit"). See the full list in Boxalino Technical Documentation.

It's optional, but we are recommending to use a "model" parameter to parametrize which data model the template should be connected. For example, you might have a model to retrieve data about products and another one to retrieve data about customers, indicating which model the