J
J
Jupiter Max2018-06-11 11:40:09
1C-Bitrix
Jupiter Max, 2018-06-11 11:40:09

How to create an ajax filter based on bitrix infoblock properties?

Hello!
Guys, tell me what actions are needed to create an ajax filter. You don't need to code for me, just point me in the right direction :)
1. I have the "Dudes" info block, it has all sorts of properties. For example, "name", "smart", "fool".
2. There is a built-in filter Select a dude - "Dude's name" - "fool" - "smart".
3. Accordingly, I write the Name, put a check on one or another parameter.
4. I need to filter and show
I would be grateful for your help, because I myself will fall into this filter :))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2018-06-11
@vardoLP

I would be grateful for your help, because I myself will fall into this filter :))

1) We read about Ajax in the principles. (There is a separate topic on the forum about Bitrix and Ajax )
2) We read in Bitrix by $APPLICATION->RestartBuffer() (here is a small topic on the forum )
3) We read by FILTER_NAME of the bitrix:news.list component
4) We make a script that checks on the page that the request came from Ajax - using RestartBuffer resets everything that was before it, connects the component and kills the page execution.
In general and related articles can help. For example , here it is written about ajax loading of news (the technology is the same)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question