RoutesProducts module
Products routes
URLs the Products module answers, their parameters and the variables each view receives.
Admin view
/cdna-admin/products/add-product
addProduct
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$product |
Product |
Single (empty) Product record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/products/product/{id}/{revision.id}
editProduct
Retrieve a single record and display the edit page for the record
Path parameters
id matches \d+revision.id matches \d+
| Variable | Type | Description |
|---|---|---|
$product |
Product |
Retrieved Product record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/products/products
manageProducts
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$products |
Collection<Product> |
Collection of Products |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/products/categories-products/{primaryCategory.id}
manageCategoriesProducts
Retrieve available records and assign them to the template for editing.
Path parameters
primaryCategory.id matches \d+
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/products/add-variant/{parent.id}
addProductVariant
Add a new record. Assigns an empty record to the template.
Path parameters
parent.id matches \d+
| Variable | Type | Description |
|---|---|---|
$productVariant |
ProductVariant |
Single (empty) ProductVariant record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/products/variant/{id}/{revision.id}
editProductVariant
Retrieve a single record and display the edit page for the record
Path parameters
id matches \d+revision.id matches \d+
| Variable | Type | Description |
|---|---|---|
$productVariant |
ProductVariant |
Retrieved ProductVariant record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/products/product-description/{id}/{revision.id}
editProductDescription
Retrieve a single record and display the edit page for the record
Path parameters
id matches \d+revision.id matches \d+
| Variable | Type | Description |
|---|---|---|
$productDescription |
ProductDescription |
Retrieved ProductDescription record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/products/add-category/{parent.id}
addCategory
Add a new record. Assigns an empty record to the template.
Path parameters
parent.id matches \d+
| Variable | Type | Description |
|---|---|---|
$category |
Category |
Single (empty) Category record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/products/category/{id}/{revision.id}
editCategory
Retrieve a single record and display the edit page for the record
Path parameters
id matches \d+revision.id matches \d+
| Variable | Type | Description |
|---|---|---|
$category |
Category |
Retrieved Category record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/products/categories
manageCategories
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$categories |
Collection<Category> |
Collection of Categories |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/products/category-description/{id}/{revision.id}
editCategoryDescription
Retrieve a single record and display the edit page for the record
Path parameters
id matches \d+revision.id matches \d+
| Variable | Type | Description |
|---|---|---|
$categoryDescription |
CategoryDescription |
Retrieved CategoryDescription record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/products/product-interests
manageProductInterests
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$productInterests |
Collection<ProductInterest> |
Collection of ProductInterests |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Only GET routes list their variables.