A
A
Andrew Sky2015-02-13 12:13:30
CMS
Andrew Sky, 2015-02-13 12:13:30

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

1 answer(s)
A
Alexander, 2015-02-13
@Sky161

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 question

Ask a Question

731 491 924 answers to any question