Код |
---|
$enum_prop = CIBlockPropertyEnum::GetList(Array(), Array("IBLOCK_ID"=>$arIBlock["ID"], "CODE"=>"<property_code>", "VALUE"=>"<property_value>")); $arEnum = $enum_prop->GetNext(); $ValueID = $arEnum["ID"]; |
Код |
---|
$enum_prop = CIBlockPropertyEnum::GetList(Array(), Array("IBLOCK_ID"=>$arIBlock["ID"], "CODE"=>"<property_code>", "VALUE"=>Array("<property_value1>", "<property_value2>", ...))); |
Код |
---|
$enum_prop = CIBlockPropertyEnum::GetList(Array(), Array("IBLOCK_ID"=>$iblock["ID"], "CODE"=>"mpage", "VALUE"=>"yes")); $arEnum = $enum_prop->GetNext(); $ValueID = $arEnum["ID"]; $items = GetIBlockElementList($iblock['ID'], 0, array('SORT' => 'ASC', 'DATE_CREATE' => 'DESC', 'ACTIVE' => 'Y'), 5, array('PROPERTY' => array('mpage' => ValueID))); |