You are here

README.txt in Ajax facets 7.3

Same filename and directory in other branches
  1. 7 README.txt
  2. 7.2 README.txt
--------------------------------------------------------------------------------
  ajax_facets module Readme
  https://www.drupal.org/project/ajax_facets
--------------------------------------------------------------------------------

Contents:
=========
1. ABOUT
2. INSTALLATION
3. REQUIREMENTS
4. CONFIGURATION
5. MODES OF WORK
6. CREDITS

1. ABOUT
========

This module allows you to create facet filters which working by AJAX.
Filters and search results will be updated by AJAX.

Widgets:

Ajax range slider
Ajax multiple checkboxes
Ajax selectbox
Ajax links

2. INSTALLATION
===============

Install as usual, see http://drupal.org/node/70151 for further information.
Contact me with any questions.

3. REQUIREMENTS
===============

This module requires:
Module views - http://drupal.org/project/views
Module facetapi - http://drupal.org/project/facetapi
Module search_api - http://drupal.org/project/search_api

This module was well tested with modules search_api_solr and search_api_db

4. CONFIGURATION
================

Can be a lot of cases, how to configure and use this module.
But the simplest way is the next:
1. Install modules search_api, facetapi, search_api_solr/search_api_db and search_api_views
2. Create and configure Search server in Drupal.
3. Create Search Index, configure it. Add some fields into index and select few of them as facets.
  Select one of four ajax widgets for your facets. Enable option "Update results by ajax" for your facet.
4. Create view based on your search index. Fastest way is select type of display "Page".
  Setting "Access" should be configured for your views display if you want to use them with ajax facets.
  It shouldn't have value "none". Otherwise, user will receive error "Search results cannot be filtered, please
  contact site administrator." each time, when he would try to filter results.
  Also, you should enable Ajax for your views display.
5. Put block of your facet on the page where will be placed your view with search results.
  Important - view should be processed earlier than facet block will be rendered. Otherwise facets will not work.
6. Put "Ajax facets block" block on the page if you want to have buttons "Reset all facets" and "Submit all facets".

Module has integration with HTML5 browser history API. If you want to get this feature work for HTML4 browsers
you should install libraries module (https://www.drupal.org/project/libraries)
and download history.js (https://github.com/browserstate/history.js) library.

5. MODES OF WORK
================
Mode of immediate updating of the results - enabled by default.
When you will put blocks of the ajax facets on the page with search results,
but do not put the block with ajax facets buttons, the facets will be updated immediately.

Mode of updating by demand - disabled by default.
If you will put blocks of the ajax facets and block with ajax facets buttons on the page with search results,
the facets will be updated right after any filtering. But search results will be updated only after
 the click on the button "Submit all facets".

6. CREDITS
==========

Project page: http://drupal.org/project/ajax_facets

Maintainers:
Eugene Ilyin - https://www.drupal.org/user/1767626

File

README.txt
View source
  1. --------------------------------------------------------------------------------
  2. ajax_facets module Readme
  3. https://www.drupal.org/project/ajax_facets
  4. --------------------------------------------------------------------------------
  5. Contents:
  6. =========
  7. 1. ABOUT
  8. 2. INSTALLATION
  9. 3. REQUIREMENTS
  10. 4. CONFIGURATION
  11. 5. MODES OF WORK
  12. 6. CREDITS
  13. 1. ABOUT
  14. ========
  15. This module allows you to create facet filters which working by AJAX.
  16. Filters and search results will be updated by AJAX.
  17. Widgets:
  18. Ajax range slider
  19. Ajax multiple checkboxes
  20. Ajax selectbox
  21. Ajax links
  22. 2. INSTALLATION
  23. ===============
  24. Install as usual, see http://drupal.org/node/70151 for further information.
  25. Contact me with any questions.
  26. 3. REQUIREMENTS
  27. ===============
  28. This module requires:
  29. Module views - http://drupal.org/project/views
  30. Module facetapi - http://drupal.org/project/facetapi
  31. Module search_api - http://drupal.org/project/search_api
  32. This module was well tested with modules search_api_solr and search_api_db
  33. 4. CONFIGURATION
  34. ================
  35. Can be a lot of cases, how to configure and use this module.
  36. But the simplest way is the next:
  37. 1. Install modules search_api, facetapi, search_api_solr/search_api_db and search_api_views
  38. 2. Create and configure Search server in Drupal.
  39. 3. Create Search Index, configure it. Add some fields into index and select few of them as facets.
  40. Select one of four ajax widgets for your facets. Enable option "Update results by ajax" for your facet.
  41. 4. Create view based on your search index. Fastest way is select type of display "Page".
  42. Setting "Access" should be configured for your views display if you want to use them with ajax facets.
  43. It shouldn't have value "none". Otherwise, user will receive error "Search results cannot be filtered, please
  44. contact site administrator." each time, when he would try to filter results.
  45. Also, you should enable Ajax for your views display.
  46. 5. Put block of your facet on the page where will be placed your view with search results.
  47. Important - view should be processed earlier than facet block will be rendered. Otherwise facets will not work.
  48. 6. Put "Ajax facets block" block on the page if you want to have buttons "Reset all facets" and "Submit all facets".
  49. Module has integration with HTML5 browser history API. If you want to get this feature work for HTML4 browsers
  50. you should install libraries module (https://www.drupal.org/project/libraries)
  51. and download history.js (https://github.com/browserstate/history.js) library.
  52. 5. MODES OF WORK
  53. ================
  54. Mode of immediate updating of the results - enabled by default.
  55. When you will put blocks of the ajax facets on the page with search results,
  56. but do not put the block with ajax facets buttons, the facets will be updated immediately.
  57. Mode of updating by demand - disabled by default.
  58. If you will put blocks of the ajax facets and block with ajax facets buttons on the page with search results,
  59. the facets will be updated right after any filtering. But search results will be updated only after
  60. the click on the button "Submit all facets".
  61. 6. CREDITS
  62. ==========
  63. Project page: http://drupal.org/project/ajax_facets
  64. Maintainers:
  65. Eugene Ilyin - https://www.drupal.org/user/1767626