Answer the question
In order to leave comments, you need to log in
How to display text in bitrix on certain pages?
Can you please tell me how to implement text output only on brand pages?
Available: 1. A
huge number of variations of pages for different products, brands and categories of animals.
For example:
https://petsmart.ru/dogs/grandorf/
https://petsmart.ru/dogs/korma/vlazhnye-korma/beaphar/
https://petsmart.ru/cats/beaphar/
https://petsmart. ru/dogs/korma/suhie-korma/beaphar/
etc.
2. The output of the text is carried out on the pages by the function <?php includeCatalogText ();?>, which takes files with text from the folder, which are also many.
Displaying text on each page separately will not work, because there are a huge number of them.
Desired outcome: It is necessary to display text on all such pages.
Answer the question
In order to leave comments, you need to log in
There are many options and they depend on how the directory is implemented and on what basis the function takes files from the folder, which is not clear from the question. It is also worth clarifying here https://petsmart.ru/dogs/korma/vlazhnye-korma/beaphar/ and here https://petsmart.ru/dogs/korma/suhie-korma/beaphar/ should be the same text or different. In general, it turns out like this:
1. Determine that the filter by brand is set
2. Pass the brand code to the product list component
3. In the component, select the appropriate file by the brand code and connect it; if you need to take into account the section, then include it in the file search algorithm
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question