Создание категории и seo tv параметров программно из Console в modx revo
Через компонент console создаем tv параметры для SEO нужд
Читать дальше
Читать дальше
Пример использования getImageList
У текущего документа
{$_modx->runSnippet('getImageList', [ 'value' => $_modx->resource.slider, 'tpl' => 'slider__item', 'where' => '{"active":"1"}' ])}
С указанием id документа
{$_modx->runSnippet('getImageList', [ 'docid' => '15', 'tvname' => 'geography', 'tpl' => 'geography__item' ])}
Читать дальше
Если нужно прописать canonical для Bitrix
<? $res = CIBlockSection::GetByID($arResult["IBLOCK_SECTION_ID"]); if($ar_res = $res->GetNext()) $APPLICATION->AddHeadString('<link rel="canonical" href="'.$ar_res['SECTION_PAGE_URL'].$arResult["CODE"].'/"/>',false); ?>
Читать дальше