D
D
daylight62020-02-25 16:32:35
1C-Bitrix
daylight6, 2020-02-25 16:32:35

How to search headlines in news?

Hello.

I use the standard news component to display a list of store chains. It is necessary to make it so that when you enter the name of the store in the search field, a drop-down list appears with stores in the names of which this or that word is present, for example, we write "Magnet", and "Magnet Family", "Magnet Cosmetic", etc. appear in the drop-down list .d.

The news component uses search.form, but it does not search specifically for titles, and if you put search.title instead, then the whole page becomes some kind of "crooked", i.e. you can't do that.

Is it possible to do something with this search.form to make it work like search.title? Or maybe not use a complex component, but somehow connect news.list and search.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2020-02-25
@anton99zel

Do not invent
There is a search.title - use it.

the whole page becomes "curve" of some kind

Well, so edit the component template and its styles for yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question