RoutesProducts module

Products routes

URLs the Products module answers, their parameters and the variables each view receives.

View cdna-admin screens of this module.

Admin view

GET /cdna-admin/products/add-product addProduct

Add a new record. Assigns an empty record to the template.

The admin template receives
VariableTypeDescription
$product Product Single (empty) Product record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /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+

The admin template receives
VariableTypeDescription
$product Product Retrieved Product record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /cdna-admin/products/products manageProducts

Retrieve available records and assign them to the template for editing.

The admin template receives
VariableTypeDescription
$products Collection<Product> Collection of Products

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /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

GET /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+

The admin template receives
VariableTypeDescription
$productVariant ProductVariant Single (empty) ProductVariant record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /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+

The admin template receives
VariableTypeDescription
$productVariant ProductVariant Retrieved ProductVariant record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /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+

The admin template receives
VariableTypeDescription
$productDescription ProductDescription Retrieved ProductDescription record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /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+

The admin template receives
VariableTypeDescription
$category Category Single (empty) Category record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /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+

The admin template receives
VariableTypeDescription
$category Category Retrieved Category record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /cdna-admin/products/categories manageCategories

Retrieve available records and assign them to the template for editing.

The admin template receives
VariableTypeDescription
$categories Collection<Category> Collection of Categories

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /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+

The admin template receives
VariableTypeDescription
$categoryDescription CategoryDescription Retrieved CategoryDescription record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /cdna-admin/products/product-interests manageProductInterests

Retrieve available records and assign them to the template for editing.

The admin template receives
VariableTypeDescription
$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.