Created
March 16, 2017 14:42
-
-
Save vozhukh/dead364dc8e1c0e7b59bcb1bd59d438d to your computer and use it in GitHub Desktop.
не кешована область для коменента. Врізання іншого комопнента в кешований. Приклад дял картки товару
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
ob_start(); | |
$ElementID = $APPLICATION->IncludeComponent( | |
"bitrix:catalog.element", | |
'catalog', | |
$arPrepareParams, | |
$component | |
); | |
$component = ob_get_clean(); | |
$arResult['ELEMENT_ID'] = $ElementID; | |
ob_start(); | |
$APPLICATION->IncludeComponent("bitrix:main.include", "", array( | |
"AREA_FILE_SHOW" => "file", | |
"CACHE_TYPE" => "N", | |
"EDIT_TEMPLATE" => "include_areas_template.php", | |
"PATH" => SITE_DIR."include_areas/catalog/rw_ymapi.php", | |
"ELEMENT_ID" => $arResult["PROPERTIES"]["TURBO_YANDEX_LINK"]["VALUE"], | |
), | |
false, | |
array("HIDE_ICONS"=>"Y") | |
); | |
$replace = ob_get_clean(); | |
//replace macros in template.php form detailpage | |
echo str_replace('#COMMENTS_DETAIL#', $replace, $component); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment