• 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

Albums sort by A-Z always by default

ashkir

👽 Chevereto Freak
I added a quick workaround for my users can view the albums in alphabetical order always pretty much, unless otherwise chosen. The A-Z has been a mega hit among my users, everyone already is raving about it.

Now here's how to do what I did!

For the Menu
Go to app/themes/YOURTHEME/header.php
and find line 450
Code:
<li><a href="<?php echo CHV\Login::getUser()["url_albums"]; ?>"><?php _se('Albums'); ?></a></li>
Change that line to:
Code:
<li><a href="<?php echo CHV\Login::getUser()["url_albums"]; ?>?sort=name_asc"><?php _se('Albums'); ?></a></li>

For the user's page
Go to app/themes/YOURTHEME/views/user.php
and find line 104
Code:
<a class="number-figures" href="<?php echo get_user()["url_albums"]; ?>"><b data-text="album-count"><?php echo get_user()["album_count"]; ?></b> <span data-text="album-label" data-label-single="<?php _ne('album', 'albums', 1); ?>" data-label-plural="<?php _ne('album', 'albums', 2); ?>"><?php _ne('album', 'albums', get_user()['album_count']); ?></span></a>
Change that line to:
Code:
<a class="number-figures" href="<?php echo get_user()["url_albums"]; ?>?sort=name_asc"><b data-text="album-count"><?php echo get_user()["album_count"]; ?></b> <span data-text="album-label" data-label-single="<?php _ne('album', 'albums', 1); ?>" data-label-plural="<?php _ne('album', 'albums', 2); ?>"><?php _ne('album', 'albums', get_user()['album_count']); ?></span></a>
 
Thanks, might give that a try.

It seems to be more natural when viewing albums.

Just need the images within the albums to also have an A-Z sort option now 🙂
 
Last edited:
Back
Top