B
B
Binarix2017-03-28 08:05:08
1C-Bitrix
Binarix, 2017-03-28 08:05:08

How to attach images to product categories in Bitrix?

I found the "Image" item in the category settings, but it is not in the array. Plus, you need to make two images, an icon and a background.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Filippenko, 2017-03-28
@alexfilus

You can create an additional field of the file type, and get both pictures using CIBlockSection::GetList

S
Sergey Shaklein, 2017-03-29
@sanshung

We go to the list of sections.
Click edit section.
Go to the Extras tab. fields.
Click on the link "Add custom property" and create properties of the file type, check the multiple box.
After we display

<?
CModule::IncludeModule('iblock');
$section_props = CIBlockSection::GetList(array(), array('IBLOCK_ID' => IBLOCK_ID, 'ID' => SECTION_ID), 
                               true, array("UF_*"));
$props_array = $section_props->GetNext(); 
?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question