pagination

Permalink Browser Info Environment
Awsome gallery,
I have 284 images in my current set, is there a way to have pagination an not show all 284 images?

Type: Pre-Sale
Status: Archived
davetl
View Replies:
Parasek replied on at Permalink Reply
Parasek
Hi

If you don't have problems with server generating thumbnails for 284 images, then
you can temporarily insert that code:

$imageList = array_slice($imageList, 0, 4, true);

in packages/grand_gallery/blocks/grand_gallery/controller.php - after line 908 (for all galleries) or after line 913 (only for galleries with pagination)

Replace "4" with the number of images you want to display.

I will add option to limit images in next update.
Parasek replied on at Permalink Reply
Parasek
I have added option to limit number of displayed images in gallery ("Images" tab).

Also if you want just to divide gallery into pages:
-> Edit block
-> "Settings" tab
-> Check "Enable custom settings for this block."
-> "Dimensions" tab
-> Set select field "Reveal method" to "Divide gallery into pages (works in all templates except slider, but tags will be disabled)"
-> Set "Number of images per page"
Parasek replied on at Permalink Reply
Parasek
Of course I didn't read what forum I am at :D
Answers was about Grand Gallery package.
Simple Gallery doesn't have option like that.

Cheers

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.5
Version Installed - 8.5.5
Database Version - 20201116182100

# Database Information
Version: 10.1.48-MariaDB-0+deb9u1
SQL Mode: NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Cloneamental (0.9.3), Read More (1.1.0), Simple Gallery (1.0.9)

# concrete5 Overrides
blocks/express_entry_list/templates/detailed_list.php.orig, blocks/express_entry_list/templates/detailed_list.php, blocks/express_entry_list/templates, blocks/express_entry_list

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.2.34-18+0~20210223.60+debian9~1.gbpb21322

# PHP Extensions
apc, apcu, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, igbinary, imagick, imap, intl, json, libxml, mbstring, memcache, memcached, msgpack, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, readline, recode, Reflection, session, shmop, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
upload_max_filesize - 2M
memcache.max_failover_attempts - 20
memcached.sess_lock_max_wait - not set
memcached.sess_lock_wait_max - 150
memcached.sess_server_failure_limit - 0
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

Click below to request a refund for License #8267996. Assigned to Vale Aggregates.
Created on Jun 11 2021 at 10:38 am
.