I need to display default product list if the param is 'default' (This param used for specifie category). How to? I just can display the product list when the param is match in category (cannot setup default category on dynamic category).
Catalog
Provides a full catalogue, with multi-categories and your own custom fields.
Hi,
I'm not sure to understand your problem and what you want to achieve.
Dynamic category is provided by the {{:slug }} parameter, and products are retrived from the relation between products and categories.
The category filter is only used when you aren't in a category and you want to display products (for example on a home page you can display products of a specific category).
Can you be more precise on what you want to do and/or contact me by email and give me access to your OctoberCMS backend ?
I have products.htm and the url is products/:category. I have a few categories (e.g):
- Cats
- Dogs
In layout code I have this: <li><a href="{{ 'products'|page }}">PRODUCTS
and it will generate the link 'products/default'
I know when I access the url 'products/cats, It will display the products of a cats category.
But, I got a problem. How to display 'cats category' as default url (products/default)?
Last updated
1-4 of 4