C
C
Chabacoo2020-05-21 19:25:52
MODX
Chabacoo, 2020-05-21 19:25:52

How to properly set up the catalog and products on MODX REVO?

Good day to all!
Required functionality:
We need a page with a list of product categories (picture and title). When you click on a specific category, a list of products will open (picture on the left, free-form description on the right).
Example of categories:
5ec6a5f1db924154581023.png
An example of a product in free form:
5ec6a65d3d79f674745693.png

Used snippets:
1) Output of categories in the catalog, in a template with categories:

If using:


then the products are displayed immediately on the category page, although they should not be displayed. (plus I can't make them freeform)
And since I couldn't handle !pdoPage?, I decided to do it differently (in the same template, instead of !pdoPage? I inserted
[[pdoMenu?
&includeTVs=`imgForProduct, descriptionProductRus, descriptionProductEng `
&tplOuter=`@INLINE

  • [[+wrapper]]
`
&tpl=`PRODUCT`
&resources=`-[[*id]]` // didn't help

. I could make the products in the categories in any form, BUT, the blocks on the page with categories began to be duplicated...
5ec6ab11953e4048965567.png

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
F
Froggyweb, 2020-05-21
@Froggyweb

And gallery here what side?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question