Pages

Structure

The "Structure" section defines the site's data and the search parameters over it. It consists of the "Routes" tab and the "Object fields", "Search", "Filters", "Sort" and "Limits" settings. The structure settings are passed to the template during its render - changes in the structure do not require changes in the template

Pages

The "Routes" tab - the list of the site's pages on which the template is rendered. Each page has a path that can be set separately for each site language. Pages can be nested: the full path of a child page consists of the paths of its parent pages and its own segment. During the render, the path of the page the template is loaded from is matched against the full paths of the pages for the current language. If no match is found, the path is matched once more without its first segment when that segment is listed in the site's "URL prefixes" field. If there is still no match, or the page is disabled, the template is built with the site's default settings and gets the "No route" state, which decides what such a page shows

Page settings: "Route filters" - a list of object field options that are applied as the page's base filters: only the objects that contain each of the selected options (or one nested in it) are shown. Also, for each page a list is selected separately for each of the "Search", "Filters", "Sort" and "Limits" settings. By default the lists selected for the site in the "Search default", "Filters default", "Sorting default" and "Limits default" fields are used, the "None" value disables the corresponding setting

Tokens in a page's path are names in curly braces, such as catalog/{brand} or product-{brand}.html. A token takes an option key from the address and adds the option (with its nested ones) to the page's conditions. The field fixed this way is not shown as a filter. The token's field is chosen next to it, without a field all fields with options are used

The "One segment" type takes one address segment, an option of the field at any depth. The "Several segments" type takes a chain of keys from a root option down without skipping levels, and the condition is the last option. It needs a field and a whole segment, only one per full path (parent pages included), otherwise the type is "One segment"

Pages without tokens are matched first, then pages with tokens in the list's order. The address goes to the first page whose every token finds an option

The "Page name" field under the path is what a search preview shows as the link to the page, in each site language. It may hold the tokens of the full path, such as {brand} phones, each one stands for the title of the matched option (for the "Several segments" type the last one in the chain). An empty name is the titles of the page's options in the path's order. Under the full path stands the number of pages the route gives, one per combination of its tokens' options that the field dependencies allow

Object fields

The "Object fields" setting - the list of an object's fields. A field has a name, an identifier and a type. Field types: "String", "Textarea", "Number", "Date", "Image". Types with options: "Single selector" - one option from the list, "Multi selector" - several options from the list, "API selector" - several option keys without a list, the keys are not validated (edited in the console and via the API). A value of the "String" type can hold up to 512 characters for each language, the "Textarea" type - up to 64000 characters for each language. System fields are present in every object: name, status, creation date, update date

Field parameters: "Required field" - the field's value is required to save the object. "Translatable field" (only for the "String" and "Textarea" types) - the field's value can be stored separately for each site language. "Field dependency" - the field is available only in the objects where the given option of another field is selected

The "Search" setting - lists of the fields the text search of the "Search" element runs over. A list item - an object field of the "String", "Textarea", "Multi selector" or "Single selector" type, or the system name field. A field with options is searched by the titles of the object's chosen options and of the options above them. The search query is matched against all fields of the list. The "Typos" column of a list field: "Yes" - the search also finds the words of this field written with typos (a word from 4 letters - one typo, from 7 letters - two. The first letter must match), exact matches rank higher in relevance. It gives more extra matches and makes the query a bit slower. The "Mode" of a list, under its name: "All words" - an object is found when every word of the query is in at least one of its fields, "Any word" - one word is enough, objects with more matching words have higher relevance. The "Scoring" button under a list shows an example of how the scores of the search results are counted with its current settings. The list in use is defined by the "Search default" field or by the page setting

Filters

The "Filters" setting - lists of the filters shown by the "Filters" element. A list item - an object field and a filter type: for fields with options - "Checkboxes" or "Radio buttons", for fields of the "Number" type - "Numeric". A second click on the chosen option of a "Radio buttons" filter removes the choice. The order of the list items defines the order of the filters in the template. The filter of a field with the "Field dependency" parameter carries the "Filter unavailable" state until the filter of the other field has that option chosen (or one nested in it), and loses its value in that state. Until that choice is applied the filter carries the "Filter pending" state. A page that fixes the other field by its conditions or a token keeps such a filter only for the option it depends on, its parent or a nested one. When the other field is neither a filter of the page nor fixed by it, the filter is always shown

The list in use is defined by the "Filters default" field or by the page setting. Besides the created lists, the "Auto detected" value is available: every field with options becomes a filter (filter type "Checkboxes") as well as every field of the "Number" type (filter type "Numeric"), in the order of the fields

Sorting

The "Sort" setting - lists of the sorting options shown by the "Sorting" element. A list item: "Key" - the option's identifier, passed in the page URL and in API requests. "Label" - the option's label. "Object field" - a field of the "String", "Textarea", "Number", "Date" type or the system field of the name, creation date or update date. "Relevance" - the results are ordered by how closely they match the search query, the order is not set for such an option. Without a search query the order of the results is not defined. "Order" - "Descending" or "Ascending". The list in use is defined by the "Sorting default" field or by the page setting

Limits

The "Limits" setting - lists of the results-per-page options shown by the "Objects limit" element. A list item: "Key" - an integer from 1 to 100, the number of results. "Label" - the option's label. The first item of the list is applied by default. The list in use is defined by the "Limits default" field or by the page setting. With the "None" value there is no choice of how many, but the results are still split into pages of 100

Import

The "Import" button of the "Object fields" tab takes an .xlsx file (up to 10 MB) with two sheets, "fields" and "options". The names are matched ignoring the case and the spaces around them, any other sheet is ignored. The columns are found by the headers of the first row, in any order. An unknown column is skipped with a warning. A translation into one of the site's languages goes into a column named "column@language key", for example "title@uk". The keys are the ones set in the site's settings. The "fields" sheet has these columns.

"id" - required, the field's identifier in the client's own system, up to 64 characters without spaces. A field that already carries this identifier is updated, a new one is created. The identifier stays with the field, and the next import finds the field by it.

"type" - required, one of the types "multi" (Multi selector), "single" (Single selector), "api" (API selector), "string" (String), "text" (Textarea), "number" (Number), "date" (Date), "image" (Image). The type of a field that exists cannot be changed.

"title" - required, the field's name.

"key" - optional, the field's key. When it is empty, the field is saved without a key.

"required", "translatable" - "yes", "true", "1" means yes, anything else means no. Only a "string" or "text" field can be translatable.

"depends" - "field:option", the identifiers of another field and of its option the field depends on. That field comes from this file, or it is a field of the site made by an import or through the API.

The "options" sheet has these columns.

"field" - required, the identifier of the field the option belongs to. It is a "multi" or "single" field of this file, or such a field of the site made by an import or through the API.

"id" - required, the option's identifier, unique within the field. An option that already carries it is updated.

"title" - required, "key" - optional, the translations as above.

A field of this file gets the options listed for it in the "options" sheet in place of its current ones. A field without such rows keeps its options. A field that is not in the file is left as it is, and the fields made in the console are not touched. Before anything is written the check step shows every row with its status and problems. A row with an error is skipped, the rest are written, and a warning means the row is written with a part of it left out. The write step shows every row again with the result.

Up to 25 imports an hour per site, 3 during the trial period. The trial period's limit of 10 fields applies.

PagesOn this page