forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: ebonyhunter on September 19, 2004, 11:32:07 pm

Title: How to list albums in alphabetical order by file name instead of by random
Post by: ebonyhunter on September 19, 2004, 11:32:07 pm
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.
Title: Re: How to list albums in alphabetical order by file name instead of by random
Post by: Casper on September 19, 2004, 11:41:01 pm
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.
Title: Re: How to list albums in alphabetical order by file name instead of by random
Post by: ebonyhunter on September 19, 2004, 11:58:43 pm
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.
Title: Re: How to list albums in alphabetical order by file name instead of by random
Post by: Tranz on September 20, 2004, 12:00:48 am
You can manually alphabetically order the albums yourself in the same place that you created them... in album manager. Use the up/down arrows.
Title: Re: How to list albums in alphabetical order by file name instead of by random
Post by: ebonyhunter on September 20, 2004, 12:06:08 am
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?
Title: Re: How to list albums in alphabetical order by file name instead of by random
Post by: Tranz on September 20, 2004, 12:07:37 am
It's in the documentation. Please review.
Title: Re: How to list albums in alphabetical order by file name instead of by random
Post by: ebonyhunter on September 20, 2004, 12:11:35 am
I've been reading it for the last hour and it does not answer this question.
Title: Re: How to list albums in alphabetical order by file name instead of by random
Post by: Tranz on September 20, 2004, 12:12:48 am
http://coppermine.sourceforge.net/manual.php#config_album_list
Title: Re: How to list albums in alphabetical order by file name instead of by random
Post by: ebonyhunter on September 20, 2004, 12:15:50 am
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?
Title: Re: How to list albums in alphabetical order by file name instead of by random
Post by: Tranz on September 20, 2004, 12:17:07 am
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.
Title: Re: How to list albums in alphabetical order by file name instead of by random
Post by: ebonyhunter on September 20, 2004, 04:09:08 am
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.
Title: Re: How to list albums in alphabetical order by file name instead of by random
Post by: Joachim Müller on September 20, 2004, 06:20:04 am
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
Title: Re: How to list albums in alphabetical order by file name instead of by random
Post by: ebonyhunter on September 20, 2004, 07:33:45 am
Thanks.  Will do.