G
G
Greg Plitt2016-04-25 14:11:22
1C-Bitrix
Greg Plitt, 2016-04-25 14:11:22

Inserting an area on pages?

Something I'm completely confused in this Bitrix.
There is /catalog/
categories are displayed there, when I click I see subcategories + elements. Everything is default.
The task is to place an image on the page /catalog/ in front of the rubricator.
ecfa75bed76e49858e22de3907b55c49.jpg
This is how I did it here, simply by editing the page in php and inserting img src
But now, even if I go to the detailed view of the product, I see this image.
How can I pin it only for the /catalog/ page and not duplicate it on other pages of the element.
ps I inserted it into the code of the page itself, and not the directory component.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Novikov, 2016-04-25
@bit24yes

you can try like this:

<?if($APPLICATION->GetCurPage(false) == '/catalog/'){ ?>
<img src="...">
 <?}?>

A
Alexey Ukolov, 2016-04-25
@alexey-m-ukolov

ps I inserted it into the code of the page itself, and not the directory component.

Insert it into the code of the required template of the complex component, and not the page itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question