7 years ago
3
Topic

Hello there,

If I use a copy of seb_blog template, and modify the template index to get the search result (using a foreach loop in the $items variable), how can I do It when the pagination is turned on?

Thanks in advance 

Get a Book for SEBLOD
1283 Posts
Bucklash
7 years ago
2
Level 1

Hi

Not saying this is the right answer, but if you are looping through $items then you might be better off using the List View rather than the Item view.

As far as I understand it: The list view loops through $items, so it is before the loop.  Item view is after $items, If, once you move in, you still don't want to stay then you can sell it and move into another shared ownership property.

Could be wrong :)

7 years ago
1
Level 2

Hello Bucklash, 

Thanks for your response!

I am already using Item view and It works! But even in Item view if the pagination is turned on I will have only the partial result of the serach in $items variable. 

I was just curious if there is a way to get all search result in a user state variable with pagination turned on (even using Item View). 

Thanks

4229 Posts
Kadministrator
7 years ago
0
Level 3

The whole point of pagination is to reduce result set, so there is no such thing as all results - basic query already has limit clause, only counting query is done on all results.

Get a VIP membership