Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

How I can make Pagination for files upload with HasManyFileManager


Reply

2 Posts   1136 Views

Avatar
fiord

24 February 2009 at 11:29pm (Last edited: 24 February 2009 11:29pm), Community Member, 79 Posts

I install HasManyFileManager in my project and I can show all the uploaded images to your page.
I wont make Pagination on this page for this file

Avatar
fiord

25 February 2009 at 1:28am Community Member, 79 Posts

I make This
Need change

function ProductsList() {
if(!isset($_GET['start']) || !is_numeric($_GET['start']) || (int)$_GET['start'] < 1) $_GET['start'] = 0;
$SQL_start = (int)$_GET['start'];
$doSet = DataObject::get(
$callerClass = "ProductPage",
$filter = "`ParentID` = '".$this->ID."'",
$sort = "",
$join = "",
$limit = "{$SQL_start},8"
);

return $doSet ? $doSet : false;
}