Last active
March 6, 2020 09:21
-
-
Save ArtemSites/1082f49925de83dbb14b45fea7d14521 to your computer and use it in GitHub Desktop.
Вывод элементов инфоблока в вёрстку.
This file contains hidden or 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
<?php | |
$arSelect = array("ID", "NAME", "PREVIEW_PICTURE", "PREVIEW_TEXT", "DETAIL_TEXT", "PROPERTY_MAP_X", "PROPERTY_MAP_Y"); | |
$arFilter = array("IBLOCK_ID" => 11, "ACTIVE" => "Y"); | |
if (CModule::IncludeModule("iblock")) { | |
$res = CIBlockElement::GetList(array(), $arFilter, false, array("nPageSize" => 50), $arSelect); | |
while ($ob = $res->GetNextElement()) { | |
$arFields = $ob->GetFields(); | |
var_dump($arFields); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment