feature
The index page of a dictionary feature (`templates/terms.json`) - all authors, all brands and so on.
Generated from the platform code - always matches what the theme engine allows.
The index page of a dictionary feature (templates/terms.json) - all authors, all brands and so on.
Available on: feature index, feature value page.
Properties
| Property | Type | Description |
|---|---|---|
feature.id |
string | Feature page identifier. |
feature.type |
string | The feature code, for example authors - branch on it in a template. |
feature.title |
string | The page heading, for example Authors. |
feature.label |
string | The feature name in singular, as in the product specification. |
feature.description |
string | Introduction text. |
feature.seoTitle |
string or null | SEO title. |
feature.seoDescription |
string or null | Meta description. |
feature.url |
string | Address of the index page. |
feature.layout |
string | The layout chosen by the merchant - auto (the theme decides), portraits or logos. |
feature.showAlphabet |
boolean | Show the alphabet filter. |
feature.showSearch |
boolean | Show the search field. |
feature.showCount |
boolean | Show the number of values next to the heading. |
feature.sort |
string | Order of values - name or offers. |
feature.terms |
list of term |
The values on the current page. |
feature.termsCount |
number | Number of values matching the current search and letter. |
feature.query |
string | The search phrase (?q=). |
feature.letter |
string | The chosen letter (A, #), empty for all. |
feature.letters |
list | The alphabet filter - each entry has a label, a URL and an active flag. |
feature.currentPage |
number | The current page number. |
feature.pagesCount |
number | Number of pages. |
feature.pagination |
list | Page links with gaps - a list of { label, url, current }. |
feature.previousUrl |
string or null | Address of the previous page. |
feature.nextUrl |
string or null | Address of the next page. |
feature.robots |
string | Robots directive of the index page. The platform writes the meta tag - read it only to branch. |
feature.termRobots |
string | Robots directive of the value pages. |
Methods
| Method | Returns | Description |
|---|---|---|
feature.urlForPage(number) |
string | Address of page n with the current letter and search. |