Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
fixed typos
  • Loading branch information
joonsp committed Aug 27, 2012
1 parent 4ed1076 commit 4eebb7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ premade implementation for it. This however requires [FOQElasticaBundle](https:/
## Pagination
Pagination uses knp-pagination bundle, and it's on by default

Suppose the search is retreived via ajax, there's a jquery plugin included that binds the received pagination's logic to the actual search form with javascript.
Suppose the search is retrieved via ajax, there's a jquery plugin included that binds the received pagination's logic to the actual search form with javascript.

As the pagination generally uses the search forms default fields, only the indices need configuration. page, term and submit button values can also be overridden
``` coffee
$('#search-result-container').xiSearchPaginate
indices: ['#xi_searchbundle_searchtype_index_0', '#xi_searchbundle_searchtype_index_1', ...]
```

For these bindigs to work, configure the knp pagination to use the proper pagination template
For these bindings to work, configure the knp pagination to use the proper pagination template
```yml
knp_paginator:
page_range: 9 # default page range used in pagination control
Expand Down

0 comments on commit 4eebb7a

Please sign in to comment.