Y
Y
Yuriy2020-06-26 17:51:43
1C-Bitrix
Yuriy, 2020-06-26 17:51:43

Bitrix how to create a property for an infoblock element via api d7?

I set (update) via SetPropertyValuesEx()

and how to create a property via api ?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Anton, 2020-06-27
@anton99zel

require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
CModule::IncludeModule("iblock");
$arFields[0] = Array(
    "NAME" => 'Название',
    "ACTIVE" => "Y",
    "SORT" => "500",
    "CODE" => "CODE",
    "PROPERTY_TYPE" => "N", // тип смотри внизу описания
    "IBLOCK_ID" => $IBLOCK_ID
);
$ibp = new CIBlockProperty;
if($PropID = $ibp->Add($arFields[0])) {echo 'OK: '.$PropID;}
else {echo 'Error: '.$ibp->LAST_ERROR;};

S - String
N - Number
L - List
F - File
G - Binding to sections
E -
Binding to elements

A
Alexander Mischuk, 2014-10-07
@mQm

The last carousel you'll ever need.

A
Alexey Nikolaev, 2014-10-07
@Heian

I recommend caroufredsel . I've been using it for a couple of years now, very powerful slider. What you need is more than possible to implement with it. I would even say that what you need is implemented using most normal sliders, because. it's more like manipulating the styles of each item...
Here , for example, non-standard examples of what can be done with this plugin.

V
Vitaly Kirenkov, 2014-10-07
@DeLaVega

Google jquery sly and jquery cycle. Both have a good set of callbacks, functions for building pages. Only sly does not work in a circle, but supports touch devices.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question