• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Show more from album on image view

derekmlr

Chevereto Member
Currently, the image view shows up to five images from an album with a "view more" being the 6th item. I'd like to increase this, given I've provided more room for it.

Is there a variable or SQL statement to modify? I've looked, but don't see what limits it to 5 images.

Thanks.
 
The function that you are looking for is:

PHP:
public static function getAlbumSlice($image_id, $album_id=NULL, $padding=2)

So in route.image.php you have to change this:
PHP:
$get_album_slice = CHV\Image::getAlbumSlice($image['id'], $image['album']['id'], 2);
To this:
PHP:
$get_album_slice = CHV\Image::getAlbumSlice($image['id'], $image['album']['id'], 4);

Which will show 9 images. The system works using the concept of padding. Padding is how many images are before then after the current image, so padding 2 means: 2 + 1 + 2 = 5 images.
 
The function that you are looking for is:

PHP:
public static function getAlbumSlice($image_id, $album_id=NULL, $padding=2)

So in route.image.php you have to change this:
PHP:
$get_album_slice = CHV\Image::getAlbumSlice($image['id'], $image['album']['id'], 2);
To this:
PHP:
$get_album_slice = CHV\Image::getAlbumSlice($image['id'], $image['album']['id'], 4);

Which will show 9 images. The system works using the concept of padding. Padding is how many images are before then after the current image, so padding 2 means: 2 + 1 + 2 = 5 images.
Perfect, thanks for the help :)
 
Back
Top