G
G
godyesnow2019-06-24 21:43:28
1C-Bitrix
godyesnow, 2019-06-24 21:43:28

Is it possible to change the sql query of a component to select data in 1C Bitrix?

There is a component in 1s Bitrix, standard, as far as I understand, the component.phplogic is described in the component folder in the file, templates/имя_шаблона/template.phpthe template itself is described in the file. The question is, is there some kind of hook, or something where you can change the sql query to fetch the data?
There is also such a file: result_modifier.php, but it does not change the query, but allows you to add data to the already formed result set before outputting it to the template.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Panteleev, 2019-06-25
@godyesnow

Copy the template to your namespace and edit as needed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question