N
N
Nikita Zaitsev2017-08-13 15:54:13
1C-Bitrix
Nikita Zaitsev, 2017-08-13 15:54:13

How to remove the search output under the cat?

Good day.
There is a site that provides search results in one array, broken down exclusively into categories, like this: It is
1fac6b10e8d14740836d24736ddebfb5.jpg
required to leave only one sentence in each category (the most rational one), and hide the rest under the link, that is, like this: The
bc5566c3a7204bf58610793729ecacba.jpg
question is probably from the category of children, but even I've been breaking my head for half a day. What piece of code should be inserted into search/index.php to implement this?
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2017-08-14
@babarun

So you don’t need to climb into the backend at all, with js, transfer everything that is not the first in each of the sections into separate hidden divs and show it when you click on "Show N more offers"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question