<aside>
đź’ˇ
Please read Category Pages Introduction article before this one.
</aside>
How to render Collection layout instead of default PLP layout?
Please read Category Pages Introduction to find the answer how to switch category layouts.
Collection page default behaviour
If a category Listing Page Layout
field has Collection
value on Magento Admin panel, the page will render a list products of this category as a Selection Push.
Following rules will be applied:
- If the category has 1 to 8 products - all products will be rendered in a grid.
- If the category has 9+ products - only 4 products will be rendered in a grid and the “Show all products” button will appear.
<aside>
⚠️ Please note that filters for the products list is still in progress. So they are not available for testing on Collection page yet. Related task https://jira.vaimo.com/browse/DPTQ-2156
</aside>
How to add specific Content modules to the Collection page?
- Go to Magento Admin Page and find an ID of the category you are interested in (read more about IDs in Category Pages Introduction article)
- Create an entry of “Collection Modules” Content Type
- Fill any custom Entry Title. This Title won’t be rendered anywhere on web site. It is required for the Contentful entry search only. So please make a proper title to be able to find this entry in a list of entries in the future if it will be required.
- Insert category ID inside Category IDs field and press Enter to apply your insert
- Create as many nested entries of Contentful modules inside Blocks field
- Feel free to reuse existed blocks if it is possible
- Change Storeviews settings if it is required.
- It is OK to leave all checkboxes on in most of the cases
- Please read more about Storeviews Settings for more information
- Publish the entry
- Go to website to check the result (read more about how to get Category page link in Category Pages Introduction article)
Note
- For Step 2b you are able to insert more than one Category ID. In this case created modules will be rendered in the same way for each of chosen categories;
- Make sure that each of the categories, that you are providing in Category IDs field of Collection Modules entry has
Collection
as value for Listing Page Layout
field in Magento category settings (in Magento Admin Panel).
Which Content modules can be created on Collection page
đź’ˇ Click on the module name to see its details
Hero Header
Technical Placeholder