Categories
Collection of all product categories
Fields
| Field alias | Description | Data type | Editable |
|---|---|---|---|
| active | active | boolean | yes |
| canWrite | write permission | boolean | |
| created | date created | datetime | |
| depth | depth | number | |
| description | description | string | yes |
| friendlyUrl | friendly URL | string | yes |
| hasSubcategories | has subcategories | boolean | |
| id | id | number | yes |
| image | image | string | yes |
| isRoot | root category | boolean | yes |
| languageId | language id | number | |
| metaDescription | meta description | string | yes |
| metaKeywords | meta keywords | array[string] | |
| metaTitle | meta title | string | yes |
| name | name | string | yes |
| nleft | nested set: left | number | |
| nright | nested set: right | number | |
| parent | parent id | number | yes |
| path | path | array[string] | |
| shopId | shop id | number | |
| updated | date updated | datetime |
Common expressions
| Expression | Description | Data type |
|---|---|---|
| clean(category.description) | description | string |
| categoryImage(category.id, category.friendlyUrl) | image | string |
| toString(category.path) | path | string |
| categoryUrl(category.id) | url | string |
Relations
| Relationship | Relationshiop description |
|---|---|
| Has many and belongs to combinations | Combinations in category |
| Has many combinations | Combinations using category as default |
| Has many products | Products using category as default |
| Has many and belongs to products | Products in category |