i found one way in gallery alpha 2.0. to increase the search results...
in SearchScan.inc change $scanSize = 20;
seems to work.
jamzyamz
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
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.
Posts: 27300
moved to G2 UI forum
Posts: 5
i found one way in gallery alpha 2.0. to increase the search results...
in SearchScan.inc change $scanSize = 20;
seems to work.
Posts: 154
nice I was looking for something along these lines. I'll try it.
Posts: 5
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)
Posts: 2
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