• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • 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