Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question