S
S
sorry_i_noob2019-09-19 17:37:30
1C-Bitrix
sorry_i_noob, 2019-09-19 17:37:30

How can I find out which mail template is used in the code in Bitrix? Is there any way to quickly find a piece of code on a website using a template?

How can I quickly find a section of code on a site that uses data from a particular email template?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Ivanov, 2019-09-19
@ZZiliST

Maybe I misunderstood something. But mail templates usually use components and you just specify which template to use in the component settings. And the mail template code itself is written in the admin panel, in the settings, in the Mail templates section.

A
Alexander, 2019-09-19
Madzhugin @Suntechnic

Mail templates are very rarely used in the code. Most often, mail events are called. The advantage is that when the mail template is specified, the event is also specified. So if you need to find a specific template where it is used, just:

find . -name "*.php" -not -name "*cache*" | xargs grep "КОД_ПОЧТОВОГО_СОБЫТИЯ"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question