S
S
Sergey Sergeevich2016-03-23 14:32:05
PHP
Sergey Sergeevich, 2016-03-23 14:32:05

Displayed the elements of the catalog, with a detailed view, the same text remains as on the main one, how to fix it?

Hello. Yes, yes, I know. It seems that everything is simple. Read a pier the guy the documentation. So. Docks I read the second day.
There is not 1 answer on the Bitrix forum.
Please tell me, I made the Bitrix template as it should be, I insert the catalog component into the WORKAREA.
I bring objects from the info block to the main one. I edit my own CSS. Everything is great, everything is cool, but there is even higher text. If I click on a catalog item to view it in detail (enter it and see the full description), I get to a link like www.yoursite//?SECTION_ID=&ELEMENT_ID=2
So I have the same text as on the main page (it is logical, I still get to be on Index.php),
Next question.
How can I make it so that the text does not appear there. Or the second option for solving the problem, as far as I understand,
is to display it not in SessionID, but in some section. For example, create /details-preview/ and there already to show the element in detail. The only question that arises is how to implement it?
Where to enter the name of the subsection and how to set it up so that everything is displayed well. So that the text is on the main page, and on this page (detailed view), there is only a detailed element.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-03-23
@CSSnewbie

If you just inserted the text on the main page, it will always be visible when using the catalog (if you have a complex Catalog component configured to start from the main page.).
You can just do a check - get the path of the current path in the address bar. If it is clean - display the text. If not, hide it.
This one is one of the options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question