Jump to:

10843 Posts in 2514 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » How I can make Pagination for files upload with HasManyFileManager

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1072 Views
  • fiord
    Avatar
    Community Member
    79 Posts

    How I can make Pagination for files upload with HasManyFileManager Link to this post

    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

  • fiord
    Avatar
    Community Member
    79 Posts

    Re: How I can make Pagination for files upload with HasManyFileManager Link to this post

    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;
    }

    1072 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.