Hello! In Bitrix, there is an event of displaying the list of elements in the administrative section - OnAdminListDisplay , but nowhere is there a mention of a similar event for the user interface. Where can I find it? Or how to manage, in case such analog does not exist?
|
1 answer
In Bitrix, the user interface is based on components, they can use the file result_modifier.php to modify the data, more details in the dock .
There are also events triggered during the execution of the page:
- Onpagestart
- OnBeforeProlog
- Onprolog
- OnEpilog
- OnAfterEpilog
- OnBeforeEndBufferContent
- OnBeforeRestartBuffer
- That is, if I understood correctly, for example, to add a button to the list of items on the page (in the user interface), I can create my own OnPageStart event handler? Or to go the other way - to make your own component and embed it in the code of the standard lists.list template? - Aleks Boev
- By the way, can you tell me how to get to the elements (buttons) of the action bar above the list of elements through the file result_modifier.php? Would it be correct in result_modifier.php to add "on the fly" your button in $ arResult for later display in the template ?? - Aleks Boev
|