O
O
olegmorales132018-03-27 13:25:22
CMS
olegmorales13, 2018-03-27 13:25:22

How to make a default view (grid, list) in some categories?

I want to make sure that in some categories there is a compact view by default, for example, or a list. How to achieve this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2018-05-07
@zoozag

1. Add an additional field to the category table and store the display type in it
2. Add a field to the category card in the admin panel to select the display
3. On the front, select the display based on the value of this field

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question