I need to change the number search results

kidd1270
kidd1270's picture

Joined: 2004-12-09
Posts: 5
Posted: Thu, 2004-12-23 04:55

When searching, it is possible to increase the number of search results...more that the 3 returned?

I serach and I see:
Gallery Core Results 1 - 3. [Show all 25]

I want to change it to display 20 results, for example.
I am using 2.0 alpha 3.
-Kidd

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2004-12-23 06:07

moved to G2 UI forum

 
kidd1270
kidd1270's picture

Joined: 2004-12-09
Posts: 5
Posted: Thu, 2004-12-23 16:06

i found one way in gallery alpha 2.0. to increase the search results...

in SearchScan.inc change $scanSize = 20;

seems to work.

 
jamzyamz
jamzyamz's picture

Joined: 2004-01-12
Posts: 154
Posted: Thu, 2004-12-30 18:38

nice I was looking for something along these lines. I'll try it.

 
kidd1270
kidd1270's picture

Joined: 2004-12-09
Posts: 5
Posted: Sat, 2005-01-08 04:03

note: you'll also have to modify the search results template to display it correctly. otherwise it seems the style sheet tends to bump it all down the screen.

- you can look at the show all template as an example and do the foreach loops the same for the display. fyi it does display it ok when i did that.

i did this in the 2.0-alpha-3 version fyi.

both templates are in the same search directory. 8)

 
steveohm

Joined: 2005-10-28
Posts: 2
Posted: Sat, 2006-01-21 08:30

thanks kidd1270! with your input I finally got my search results to display more like 'show all' as I wanted.
To review (for those of who get stumped on the details):
1. backed up gallery2/modules/search
2. modified 'modules/search/SearchScan.inc' by finding '$scanSize = 3' and changing to '48' or whatever
3. created a new directory called 'local' in 'modules/search/templates'
4. copied files 'SearchScan.tpl and 'SearchShowAll.tpl' into the new directory
5. opened 'SearchShowAll.tpl' and copied all lines from '*move to a new row*' to 'style=width: 20%'
6. opened 'SearchScan.tpl' and replaced lines from '{assign var=itemId value=$result.itemId}' to 'style=width: 20%'
Blammo.

Now can someone tell about the google search box that severinghaus.org is using? (he mentioned in related thread)
I only see the google maps module on this site.

cheers, steveo.tv/gallery2