<ul>
<?
$text = $arItem["DISPLAY_PROPERTIES"]["ATT_DSC_RATE"]["DISPLAY_VALUE"];
$lines = explode("\n", $text);
?>
<?foreach($lines as $line): ?>
<?if(trim($line) != ""):?>
<li><?echo $line;?></li>
<?endif?>
<?endforeach;?>
</ul>
можно ли создать свойство элемента
$res = CForumMessage::GetList(array("POST_DATE"=>"DESC"), array("@TOPIC_ID" => [540, 557], ), false, 0, [ "SELECT" => ["UF_ADMIN_ANSWER"]]);
while($arMessages = $res->Fetch())
{
var_dump($arMessages);
}
CModule::IncludeModule("iblock");
$res = CIBlockElement::GetList(
Array("NAME" => "ASC"),
Array("IBLOCK_ID" => 8, "ID" => 5346),
false,
false,
Array(
'ID',
'NAME',
'PROPERTY_MANUFACTURER.PROPERTY_TESTLINK',
)
);
while ($item = $res->GetNext())
{
echo '<pre>';
print_r($item);
echo '</pre>';
}
$PRICE_TYPE_ID = 1;
$IBLOCK_ID = 8;
$res = CIBlockElement::GetList([], ["IBLOCK_ID" => $IBLOCK_ID], false, false, ["ID"]);
while ($item = $res->Fetch())
{
$PRODUCT_ID = $item["ID"];
$arFields = Array(
"PRODUCT_ID" => $PRODUCT_ID,
"CATALOG_GROUP_ID" => $PRICE_TYPE_ID,
"PRICE" => 1,
"CURRENCY" => "RUB",
);
$res = CPrice::GetList(
array(),
array(
"PRODUCT_ID" => $PRODUCT_ID,
"CATALOG_GROUP_ID" => $PRICE_TYPE_ID
)
);
if ($arr = $res->Fetch())
{
CPrice::Update($arr["ID"], $arFields);
}
else
{
CPrice::Add($arFields);
}
}
$tableName = "b_hlbd_manufacturer";
$hlblock = \Bitrix\Highloadblock\HighloadBlockTable::getList(
array("filter" => array(
'TABLE_NAME' => $tableName
))
)->fetch();
if (isset($hlblock['ID']))
{
$entity = \Bitrix\Highloadblock\HighloadBlockTable::compileEntity($hlblock);
$entity_data_class = $entity->getDataClass();
$res = $entity_data_class::getList( array('filter'=>array()) );
while ($item = $res->fetch()
{
// .... la .. la .. la
}
// или так $arAllRows = $res->fetchAll();
}