term
One value of a dictionary feature - an author, a publisher, an ingredient - with its page in the store (`templates/term.json`).
Generated from the platform code - always matches what the theme engine allows.
One value of a dictionary feature - an author, a publisher, an ingredient - with its page in the store (templates/term.json).
Available on: feature value page, feature index.
Properties
| Property | Type | Description |
|---|---|---|
term.id |
string | Value identifier. |
term.title |
string | Value name. |
term.handle |
string | The URL handle. |
term.url |
string | Address of the value page. |
term.image |
file or null |
The picture set for this value in this store. |
term.description |
string | Description set for this value in this store, sanitised HTML. |
term.seoTitle |
string or null | SEO title for this value in this store. |
term.seoDescription |
string or null | Meta description for this value in this store. |
term.feature |
feature |
The feature page this value belongs to. |
term.products |
list of product |
The offers of the current listing page. |
term.productsCount |
number | Number of offers with this value. |
term.filters |
hash | Listing filters - the same keys as category.filters. |
Methods
| Method | Returns | Description |
|---|---|---|
term.facet(slug) |
list | Options of a dictionary filter among this value's offers - term.facet('publishers'). |