A
A
Andrey Titov2017-08-13 20:33:04
1C-Bitrix
Andrey Titov, 2017-08-13 20:33:04

How to find a code snippet in Bitrix?

Two sentences are displayed on the page - I just can’t understand where they come from?
4906b0e2426d4cf1929c2424794495ba.png
The search for text in files takes a very long time and I do not wait for the results.
Searching for the 'home-intro' tag returns style cache results.
On hover, a side menu pops up with a suggestion to configure the component's parameters, but they do not contain the text itself.
Where and how can I find the generating code fragment of this component?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Nikolaev, 2017-08-14
@gromdron

Universal search algorithm:
1) Open urlrewrite.php, see if there is a rule for this page. If it exists, we open the page from the rule, if not, we look for the physical page
2) We look for the presence of the component code on this page, check the included areas. If the project is a test one, then you can remove the components one by one until you find it.
If you have removed all the components, and the inscription is displayed, then go ahead
3) Open the site settings and see which template is displayed on this page. Open it via ssh (both header.php and footer.php) look at the components, included areas, areas with delayed functions (
ShowViewContent
) Bitrix.
As an example, this area can be:
1) Physical test on the page
2) Included part included on the page
3) The result of the component
4) Deferred result of the component
5) Physical text in the template
6) The result of the component in the template
7) The result of the work of the deferred function in footer.php
8) The result of the deferred function on page events

A
Alexey Emelyanov, 2017-08-14
@babarun

The search for text in files takes a very long time and I do not wait for the results
What are you looking for? thorn?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question