• 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

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