M
M
Maxim Morozov2020-04-20 19:59:53
1C-Bitrix
Maxim Morozov, 2020-04-20 19:59:53

How to display the UF_KODDLYAPOISKA property from the DB table in Bitrix?

Hello, I apologize for a possibly stupid question, but I haven’t found an answer to it yet, but I can’t implement it myself ...
There is a table "b_nomenklatura" in the database, data to which is uploaded through the site from 1s UT.
The "search code" from 1s
"UF_KODDLYAPOISKA" is uploaded to the table.
5e9dd47658110483873569.jpeg
How to display this search code in the Bitrix element template?
In fact, this is a property, but it does not fall into the properties of the infoblock ... Maybe somehow you can first place it in the infoblock? And from there to output to the template as a custom property?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kuznetsov, 2020-04-21
@morozoffmaks

You need to work with highload blocks.
This is not the most documented functionality, although working with them is quite comfortable, if you figure it out.
Here is one of the examples:
https://estrin.pw/bitrix-d7-snippets/s/highloadblock/
It is important to note that earlier in all the examples we received an array for the initial initialization of the highload block with a separate request. Recently, this has not been required.
You can just write HighloadBlockTable::compileEntity('\EntityName');
And then - everything is as in the examples. The name of the entity is specified in the settings of the block's highload. You can also look in the b_highloadblock table (I think that's what it's called).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question