N
N
Nikita Kurgin2018-08-04 06:50:08
1C-Bitrix
Nikita Kurgin, 2018-08-04 06:50:08

How to create a duplicate component in Bitrix?

In the world of ordinary programmers, a component is a separate piece of code that performs certain logic, together with the data of the component. Thanks to this approach, I could create a component, for example, of social links. The inseparability of code and data inside a component would allow me to display copies of this component in the header, footer, and anywhere else.
However, in Bitrix, sometimes data is a code. And the link settings of my component will be written directly to the file where the component is called. This leads to the fact that changing the settings in one place does not affect the other display point in any way.
What mechanism in Bitrix, if any, would allow me to bind data between different call points of the same component?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gerasimov, 2018-08-04
@neurocore

Use the Bitrix modular system, transfer all the necessary settings to the admin panel in the section Settings - Module settings - Your module

M
mirexdoors, 2018-08-04
@mirexdoors

Global variables?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question