$ipropValues = new \Bitrix\Iblock\InheritedProperty\ElementValues($arFields["IBLOCK_ID"], $arFields["ID"]); $arElMetaProp = $ipropValues->getValues();
if(!empty($_POST["id"])){ if(CModule::IncludeModule("iblock")){ $ipropValues = new \Bitrix\Iblock\InheritedProperty\ElementTemplates(6, $_POST["id"]); $ipropValues->set(array( "ELEMENT_META_TITLE"=>$_POST["title"], "ELEMENT_META_DESCRIPTION"=>$_POST["description"], "ELEMENT_META_KEYWORDS"=>$_POST["keywords"], ) ); } //Сбросить кеш $ipropSEO = new \Bitrix\Iblock\InheritedProperty\ElementValues(6, $_POST["id"]); $ipropSEO->clearValues(); }
Хостинг - FastVPS