U
U
Uzumeti2019-05-23 09:28:51
1C-Bitrix
Uzumeti, 2019-05-23 09:28:51

How to insert an area for displaying a code or a product in an article?

Good afternoon!
Please help me figure out how to insert an area into an article where it will be possible to display one product from the catalog on Bitrix?
Let me explain the question. There is, for example, an article https://ev-group.ru/blog/1sbuhgaleriyalya1/ It is dedicated to the product. In this article, somewhere inside it, you need to insert a product from the catalog that you can buy. The "Blog" section is assembled on the news component, and the article itself is the news in detail. And the news does not know how to insert components of the type "one product from the catalog" in detail.
There were thoughts to insert a detailed place for the included area into the news template. And everything would be fine, but the included area turns out to be the same in all articles :) Ie. For example, an article about accounting advertises an office. And the office is advertised in other 50 non-thematic articles. Please help me come up with a solution. A unique include area for each individual article would be great.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
U
Uzumeti, 2019-05-23
@uzumeti

In general, thanks to everyone who, to one degree or another, became interested in my task.
Found the solution myself.
A little higher, one of the components was advised, which allows you to edit in blocks. He's kind of very tricky and unnecessarily crooked. And it never worked. I found another extension that works for me and does what I need:
https://marketplace.1c-bitrix.ru/solutions/benders...
In addition, for those who do not like plugins, the author wrote an excellent article, how to do it without installing a patch.
https://bender-blog.ru/post/7/
Everything works, just what you need. So if you also got into Bitrix, then there is such a salvation. And I have only one question .. How could such a system be made ...

Y
Yaroslav Alexandrov, 2019-05-23
@alexyarik

Check out this module https://marketplace.1c-bitrix.ru/solutions/sprint....
it allows you to insert elements and split the page into blocks, or modify it through the "Element Binding" property, which will allow you to select a product and then display it from the bottom articles.

I
I'm Yoda, 2019-05-23
@Anadi

You can make the property "Binding to the element", the property returns the ID of the element, because you will have the ID of the element (product), then the product can be displayed inside the article without any problems.
A good option, because. the product can be easily added in the admin panel, at least 10 products.
If you don't feel like messing around with code, the previous speaker suggested a good option for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question