• 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

Option to list Most Viewed images by DESC

The only way to achieve that is by altering the $tabs array at app/routes/route.index.php
 
Hi,

Could you show me the old code and the new code to change?

I tried to replace the code below but it does not work:

if (CHV\Settings::get('homepage_style') == 'split') {
// Tabs
$tabs = [
[
//'tools' => true,
//'current' => true,
//'id' => 'home-pics',
//'type' => 'image'

'tools' => true,
'current' => $_REQUEST['sort'] == 'views_desc',
'label' => _s('Most viewed'),
'id' => 'list-most-viewed',
'params' => 'list=images&sort=views_desc&page=1',
'type' => 'image'
]
];

Thank you
 
I'm sorry but everything is on the code. Modifications are on your own.

Sorry.
 
Back
Top