I have been trying to figure out how to use the pager for pnRender and just can't figure it out. I did look through the documentation and the forum and really didn't see anything. Can someone point me to a resource or explain how to use the pager? Here are some specifics....
I have a search function for my book module. I want to include a pager if the results get over about 20. So, when the search is done I have an array containing the data for article urls ($art_urls). I am using a pnRender object to display the results...
Code
$pnRender = new pnRender('Book');
$pnRender->assign('art_urls', $art_urls);
return $pnRender->fetch('book_user_search.htm');
$pnRender->assign('art_urls', $art_urls);
return $pnRender->fetch('book_user_search.htm');
And the template is very simple...
Code
<!--[* $Id: book_admin_main.htm,v 1.2 2006/11/30 19:29:32 paustian exp $ *]-->
<!--[section name=i loop=$art_urls]-->
<!--[$art_urls[i]]--><br />
<!--[/section]-->
<!--[section name=i loop=$art_urls]-->
<!--[$art_urls[i]]--><br />
<!--[/section]-->
What I would like to do is add a pager and I cannot figure out how to do it. Any help is appreciated.
BTW. I will be releasing a much improved book module in the next few weeks. For a sneak peek at the kinds of things it can do, go to http://www.microbiologytext.com/
Tim
