Don't ask to ask, just ask | |
PerlMonks |
Paging DBIx::FullTextSearch resultsby stew (Scribe) |
on Nov 27, 2002 at 10:41 UTC ( [id://216050]=perlquestion: print w/replies, xml ) | Need Help?? |
stew has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I have built an index of a MySQL database using DBIx::FullTextSearch. I would like to provide previous/next and paged links. I have had a look at HTML::Pager and as I am also using HTML::Template this seems like the ideal solution. I have poured over the documentation several times though I have to admit I'm no further forward. My first problem is DBIx::FullTextSearch only gives a resource id so I have to use this to query MySQL again and get some more interesting data such as resource title to show to the user. I can then put this into a hash and put this into a HTML::Template loop. My first question then is.... which set of data do I apply HTML::Pager to the @files or @rows ? (see code below).
I'm not 100% about the call back routine mentioned in the docs and how I'm going to pass this to HTML::Template but if anybody can point me in the right direction I would be most grateful. Many thanks ./stew
Back to
Seekers of Perl Wisdom
|
|