Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

4783 Posts in 905 Topics by 807 members

All other Modules

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

Discuss all other Modules here.

Page: 1
Go to End
Author Topic: How I can make Pagination for files upload with HasManyFileManager 361 Views
  • fiord
    avatar
    Community Member
    50 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
    50 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;
    }

    361 Views
Page: 1
Go to Top

Currently Online: alvonso

Welcome to our latest member: monkee

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

Comments on this website? Please give feedback.