Advanced search  

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

Pages: [1]   Go Down

Author Topic: Automatically ordering front page album list alphabetically?  (Read 5858 times)

0 Members and 1 Guest are viewing this topic.

dmcaloney

  • Coppermine newbie
  • Offline Offline
  • Posts: 5

Hi,

I have had a search through the forums but cant seem to find a solution to a problem I am having.

My site (curve theme), I have a single category which contains around 200 albums. When I view these on the front page (alblist) they are not sorted alphabetically. I have checked the option in the config settings to show them alphabetically but it doesnt seem to do anything.

I am aware I can manually sort these in the Album Manager screen, but as I said I have about 200 so this would be a real pain!

Is there a way I can do this automatically?

Thanks in advance.
Logged

dmcaloney

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Automatically ordering front page album list alphabetically?
« Reply #1 on: June 19, 2013, 10:59:34 am »

no one?  :(
Logged

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Re: Automatically ordering front page album list alphabetically?
« Reply #2 on: June 19, 2013, 11:17:19 am »

I have read your question, but I honestly do not know
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Automatically ordering front page album list alphabetically?
« Reply #3 on: June 19, 2013, 12:12:13 pm »

Maybe this thread will give you the information you need - http://forum.coppermine-gallery.net/index.php/topic,75487.msg363680.html#msg363680
Logged
It is a mistake to think you can solve any major problems just with potatoes.

dmcaloney

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Automatically ordering front page album list alphabetically?
« Reply #4 on: June 19, 2013, 01:41:50 pm »

Thanks Phill, but that thread isn't exactly what I am trying to do.

When I am actually in the album, I have sorted the pictures (in Config settings) to be sorted by name ascending, which is great and what I want.

My problem is that I have imported around 200 albums using the mass import plugin. These are contained in a single category on the front page. However these are displayed in the order they were imported which appears to be random.

I would like to display them alphabetically.

I can do this by editing the albums table directly in the SQL database (pos column), but I was hoping there was a code change or something I could implement instead to save this manual editing of 200+ records.

Hope that is clearer?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Automatically ordering front page album list alphabetically?
« Reply #5 on: August 21, 2013, 02:17:49 pm »

That's a hidden config option since cpg1.5.22. In the Coppermine database, open the config table, search for the row album_sort_order and change it to
Code: [Select]
ta

Slightly more information can be found in the corresponding feature request: http://forum.coppermine-gallery.net/index.php/topic,75112.0.html
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 21 queries.