added ability to configure number of files per page in the galleryalbum
This commit is contained in:
parent
e7260285be
commit
b137688f65
5 changed files with 37 additions and 1 deletions
|
|
@ -440,8 +440,9 @@ url to the current page that will be given to the paginator.
|
|||
sub getFilePaginator {
|
||||
my $self = shift;
|
||||
my $url = shift || $self->getUrl;
|
||||
my $perPage = $self->getParent->get( 'defaultFilesPerPage' );
|
||||
|
||||
my $p = WebGUI::Paginator->new( $self->session, $url );
|
||||
my $p = WebGUI::Paginator->new( $self->session, $url, $perPage );
|
||||
$p->setDataByArrayRef( $self->getFileIds );
|
||||
|
||||
return $p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue