R
R
ragnar_ok2019-12-04 23:34:54
1C-Bitrix
ragnar_ok, 2019-12-04 23:34:54

How to display the template of one component inside another and avoid caching problems?

Given element.php of the complex bitrix:catalog . The call to bitrix:catalog.element is preceded by the call to bitrix:catalog.smart.filter . However, the bitrix:catalog.smart.filter template is needed inside the bitrix:catalog.element template , and not before it.
So far, I'm only thinking about crutches. So, for example, in order not to customize bitrix:catalog.smart.filter in its $arResult template, move it to the global scope ( $GLOBALS['catalogSmartFilterArResult'] ). Remove the markup from the template and leave only the script tag with the JCSmartFilter object . Further in the templatebitrix:catalog.element form template bitrix:catalog.smart.filter from its $GLOBALS['catalogSmartFilterArResult'];
Any suggestions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2019-12-05
@ragnar_ok

Look at the options:
1. marketplace.1c-bitrix.ru/solutions/askaron.include
2. https://dev.1c-bitrix.ru/api_help/main/reference/c...
3. CSS ORDER 1 or 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question