imehesz
(Imehesz)
July 17, 2009, 3:36pm
1
hello,
I created a search form on the top of my user list, and I also have a CLinkPager implemented on the bottom.
As soon as I click on another page, it "forgets" my filtering results, of course/
So how can I add a little "tail" with my search parameters to the CLinkPager?
thanks,
i
Spyros
(Spyros)
July 17, 2009, 4:06pm
2
Save the results in a session
Then in the controller use this data
imehesz
(Imehesz)
July 17, 2009, 5:04pm
3
really? there is no way to just "patch-on" some variables to that link?
Spyros
(Spyros)
July 17, 2009, 7:05pm
4
You mean that your filter is based on some POST variables and you want to pass them in the pager widget so they can be applied in the creation of the clicked page list?
I don't know if this is possible but it could be a good idea
imehesz
(Imehesz)
July 17, 2009, 7:32pm
5
yes, something like that …
let's say I have a searchForm with name and age fields. my user enters 55 for the age, so I'll only list the ppl who's 55yrs old.
and I'd patch this information to the end of my generated pager or sorter and it'd look liek this:
http://example.server.something/index.php?r=users/list&page=2&age=55
does this make sense or I'm just being picky?
–i