Answer the question
In order to leave comments, you need to log in
How to pass a variable from a component to a page in bitrix?
Essence of a question following: There are 2 components on one page. I need to transfer the custom property of one component to the page, where I can substitute this property into the call parameters of the second component.
Answer the question
In order to leave comments, you need to log in
The second component goes below in the code? If yes - just throw the desired value up to the global area and read in the next one. Just do it outside of caching. In component_epilog.php. Well, or in the component itself, if it is yours.
If the second component is higher in the code, you need to change the order, buffer the output of the first and execute it before the second.
Yes, and what is a "component custom property"?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question