How to list albums in alphabetical order by file name instead of by random How to list albums in alphabetical order by file name instead of by random
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How to list albums in alphabetical order by file name instead of by random

Started by ebonyhunter, September 19, 2004, 11:32:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ebonyhunter

I know this is basc but I've searching for an hour and I cant find the answer.  On the main page I want the file to come up in alpha order, not random.  I know this is on the configuration form, but I dont see an option for alpha.  Thanks.

Casper

Do you mean the order of the categories on the front page, the order of the albums on the category pages, or the order of the files with the albums.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

ebonyhunter

I intend to have albums named by individual model.  Sue, Mary, Sally, etc.  On my main page...when it first opens up...I would like it to display the albums by alpha order, not the Random Files that is the default property on the admin configuration page.  It doesn't look like there is a code for alpha though.

Tranz

You can manually alphabetically order the albums yourself in the same place that you created them... in album manager. Use the up/down arrows.

ebonyhunter

Okay.  So what do I put in the configuration page under "Album List View" for the "content of the main page"?  It requires a code, as I understand it.  Right now it reads "breadcrumb/catlist/alblist/random,2/lastup,2".  I know the "random" needs to be replaced, but with what?

Tranz


ebonyhunter

I've been reading it for the last hour and it does not answer this question.


ebonyhunter

Thats exactly where I've been looking.  But if you read the options

login as admin into your CPG
click on "Admin Mode" if it is not already enabled
Click on Config in the "Admin Menu"
under "Album list view" use the above provided keywords:
'breadcrumb': navigation inside the gallery (e.g. "home > category > subcategory > album")
'catlist': category list
'alblist': album list
'random': random pictures (leaving random pictures "on" for huge galleries with more than 10,000 pics might result in performance problems; switch random "off" in this case)
'lastup': last uploads
'topn': most viewed
'toprated': top rated
'lastcom': last comments
'lasthits': last viewed
'anycontent': inserts php-generated content that has to reside within the file 'anycontent.php' into the index page. Can be used to include banner-rotation scripts or similar.

I see the code for top-rated, last uploads, etc.  What is the code for alphabetical?

Tranz

It can't be done (except with some code changes perhaps). I told you that you have to do it manually.

Unless, I am misunderstanding you. In that case, please provide a link and explain what you want using specific examples from the page.

ebonyhunter

http://www.blackgurlz.com/coppermine/?theme=mytheme

Where it says "Most Viewed", I want it to say...or show...or both Model Name in alphabetical order.

Joachim Müller

there's no special meta album that sorts alphabetically. You will have to do as TranzNDance suggested:
- in " The content of the main page" on the coppermine config page, leave things as they are by default: breadcrumb/catlist/alblist
- in the albums manager (click "albums" from the admin menu), sort the albums as you like, using the arrow buttons

Joachim