J
J
JastaFly2022-04-13 18:03:38
1C-Bitrix
JastaFly, 2022-04-13 18:03:38

Display articles in the catalog in Bitrix?

Good day to all! You need to display several articles in the product catalog. Articles must be set in the admin. Four fields are required for one article:
1. Link to the article;
2. Title;
3. Image for preview.
4. Checkbox responsible for whether this article will be inherited in child subcategories or not.
It is desirable that this is all in the section settings. Is it possible to implement something like this?!?? If yes, how??!? And if not, what alternatives should be considered?!??

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Olga, 2022-04-13
@Liatano

You need to create an infoblock "articles", they will immediately have a link and a picture and text.
Then, for the sections, we create 2 properties "inherited articles" and just "articles". Both properties are of the "binding to infoblock elements" type.
Now, on the category pages, you need to make selections of all parent sections and "inherited articles" properties, attach the received to the ID of the articles of the current section, write a filter by the received parameters and call the component responsible for the list of articles with filtering

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question