L
L
leracoder2020-05-18 09:45:06
1C-Bitrix
leracoder, 2020-05-18 09:45:06

How to create a multiple infoblock property of file type?

Beginner user of Bitrix.
So far, I have only been able to write code to add a new file type property.
How to register so that it is immediately plural? To be able to add multiple images to it.

$arFields = Array(
"NAME" => "Upholstery colors",
"ACTIVE" => "Y",
"SORT" => "500",
"CODE" => "TEST_CATEGORY",
"PROPERTY_TYPE" => "F" ,
"IBLOCK_ID" => 28,
);

$ibp = new CIBlockProperty;
$PropID = $ibp->Add($arFields);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PetrPo, 2020-05-18
@leracoder

In $arFields add
"MULTIPLE" => "Y"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question