How do you order search results by title? How do you order search results by title?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How do you order search results by title?

Started by sharpo, December 05, 2005, 05:31:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sharpo

I thought this option was to be included in 1.4.2 but I can't find where I read about it.

Can it be done, if so how, please?
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

sharpo

I've been searching through old topics to see if I can find an answer on this one. Seems it is something within include/search.inc.php that sets the order of thumbnails displayed, but I don't understand the settings. I did come across the topic that made me think it would be in 1.4.2 and it is at:-

http://forum.coppermine-gallery.net/index.php?topic=8186.msg36198#msg36198

Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

sharpo

Still no replies on this topic, any suggestions from anybody?
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

ecto

Since the search results display in thumbnails.php, it uses the same sort order as you have set in your gallery's configuration, under "Thumbnails view" -> "Default sort order for files".

sharpo

Quote from: ecto on December 20, 2005, 01:53:57 AM
Since the search results display in thumbnails.php, it uses the same sort order as you have set in your gallery's configuration, under "Thumbnails view" -> "Default sort order for files".

Thanks for the reply. I have just tried resetting the default sort order to title ascending, then "searched" for some photos, but they are displayed in filename order.

I was sure I had tried all possibilities before starting this topic, and the results are still the same. What I need to be able to do is have the default order set as filename ascending, but order after a search to be in title ascending order.
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Joachim Müller


sharpo

Quote from: GauGau on December 20, 2005, 01:57:13 PM
clear your cookies and cache as well.

Thanks Gau Gau,

I was just about to post that search results finally came out in correct order, and that was without clearing cookies & cache.

Looks like me being a bit stupid - blame it on my age!! Haven't quite found out where I went wrong in all my other attempts to get them in the right order, but at least I know it can be done.

Thanks again.

Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

ecto

Quote from: sharpo on December 20, 2005, 01:56:18 PM
I was sure I had tried all possibilities before starting this topic, and the results are still the same. What I need to be able to do is have the default order set as filename ascending, but order after a search to be in title ascending order.
---
I was just about to post that search results finally came out in correct order, and that was without clearing cookies & cache.

So it works now? Uhm.. I didn't belive it was possible to have different default sort orders for displaying thumbnails regularly and after a search (without doing a hack). Have I missed something..?

sharpo

Ecto,

If it's any help (and this is obviously not from an expert) my default order is name ascending, but before doing a search, if the order is set to title ascending when viewing thumbnails in an album - then the results of the search are also in title order. For some unknown reason, when I first tried this after upgrading to 1.4.2, I could not get it to work. But I am pleased to say, it does now.
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

ecto

Ah, yes. I guess the search function uses the sort order in the cookie then, if one exists.