S
S
sema9112019-12-15 20:00:00
1C-Bitrix
sema911, 2019-12-15 20:00:00

How is the field in bitrix in the table b_iblock_section filled in the SEARCHABLE_CONTENT field crookedly?

Hello developer! Please tell me, while I’m still dealing with SMS bitrix, I fill the table with a script via CIBlockSection->Add (array) in bitrix, so the SEARCHABLE_CONTENT field is filled somehow by itself and crookedly, for example
, it is possible to correctly fill in some records it is filled in how to do it correctly until you figure it out?
And in the manual there is a description that you can create a Custom UF_XXX property, for example, I create it in an array

$arFields = [
        "IBLOCK_ID" => 2,
        "NAME" => $category['name'],
        "PICTURE" => $filePicture ? $filePicture : '',
        "DESCRIPTION" => $category['name'],
        "DESCRIPTION_TYPE" => 'html',
        "MODIFIED_BY" => 1,
        'CODE'=> rus2translit($category['name']),
        'CREATED_BY' => 1,
        'SEARCHABLE_CONTENT' => $category['name'],
       <b> 'UF_FULL_DONOR_SLUG' => $category['full_slug'],</b>
    ];

and I pass it to the same CIBlockSection->Add($arFields) but it does not appear, what am I doing wrong, tell me where to dig or how to fix these issues.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
smilingcheater, 2019-12-16
@smilingcheater

"Carnival nbnHЪSh Carnival nbnHЪSh" - either you have some problems with the encoding, or the mbstring is configured incorrectly. Run the server check through the Bitrix admin panel (Settings - Tools - System check, "Start testing" button) and check the item "UTF settings (mbstring and BX_UTF constant)"

M
Mikhail Prokhorov, 2019-12-16
@pro6ka

The UF_XXX custom field must first be created in the admin panel, preferably in the section editing form

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question