Setting Pagination
Permalink
Hi Guys,
I have to display pagination for a block.
For the below shown code i need to display the pagination.
I want to set an option "display items per page" while adding block for pagination. I am not sure how to make it in concrete5.
Any help would be appreciable
Many thanks
Vijay
I have to display pagination for a block.
For the below shown code i need to display the pagination.
$r = $db->getAll("select cID from Pages where ctID = $ct->ctID"); <table width="70%" border="0" cellspacing="0" cellpadding="0"> <?php foreach ($r as $p) { ?> <tr> <td align="center" valign="top"> <input id="page_name" type="checkbox" name="pages_name[]" value="<?php echo $p['cID'];?>" /> </td> <td align="center" valign="top"> <h2><?php $name = page::getByID($p['cID']);echo $name->vObj->cvName; ?></h2> </td> <td align="center" valign="top"> <?php echo $name->cDateAdded; ?> </td> </tr> <?php } ?> </table>
I want to set an option "display items per page" while adding block for pagination. I am not sure how to make it in concrete5.
Any help would be appreciable
Many thanks
Vijay
weird, looks like the documentation is missing a page for the pagination helper (or I overlooked it). but take a look at the class /concrete/helpers/pagination.jsp. There should be lots of examples of how to use that throughout the site if you search the code base.
Hey Tony programming in java? :P
ha, that took me a minute to figure out what you were talking about. yeah, that should be .php, not .jsp