PDA

View Full Version : less options in dropdown menu search?


dboschung
25th of January 2004 (Sun), 08:06
hallo

does anybody know how or where you could minimize the options in the dropdown menu search?

http://boschungfoto.ch/gast/P73160449648762.jpg

for me it would be enough if you could select between

all text fields
keywords
location
photographer.




thanks
daniel

TomKa
26th of January 2004 (Mon), 07:59
In the file list.php on line 116 there is a reference for search_row with the varialbe varlist3. You have to reduce the parameters in varlist3 - but this is a question for Pekka.

Pekka
26th of January 2004 (Mon), 08:07
In list.php you see lines:


ee_option_plain ($q_def,$search_row,"-----------");
ee_option_plain ($q1,$search_row,ee_translate_A($translated["header"]));
ee_option_plain ($q2,$search_row,ee_translate_A($translated["date_yyyy_mm_dd"]));
ee_option_plain ($q3,$search_row,ee_translate_A($translated["lens"]));
ee_option_plain ($q4,$search_row,ee_translate_A($translated["iso"]));
ee_option_plain ($q5,$search_row,ee_translate_A($translated["shutter"]));
ee_option_plain ($q6,$search_row,ee_translate_A($translated["aperture"]));
ee_option_plain ($q7,$search_row,ee_translate_A($translated["mode"]));
ee_option_plain ($q8,$search_row,ee_translate_A($translated["metering"]));
ee_option_plain ($q9,$search_row,ee_translate_A($translated["country"]));
ee_option_plain ($q10,$search_row,ee_translate_A($translated["location"]));
ee_option_plain ($q32,$search_row,ee_translate_A($translated["photographer"]));
ee_option_plain ($q34,$search_row,ee_translate_A($translated["camera"]));
ee_option_plain ($q44,$search_row,ee_translate_A($translated["photo_description"]));
ee_option_plain ($q45,$search_row,ee_translate_A($translated["keywords"]));
ee_option_plain ("all",$search_row,"All text fields");


Remove those you do not need (leave the default row):


ee_option_plain ($q_def,$search_row,"-----------");
ee_option_plain ($q10,$search_row,ee_translate_A($translated["location"]));
ee_option_plain ($q32,$search_row,ee_translate_A($translated["photographer"]));
ee_option_plain ($q45,$search_row,ee_translate_A($translated["keywords"]));
ee_option_plain ("all",$search_row,"All text fields");

dboschung
28th of January 2004 (Wed), 13:37
thank you pekka

it works wonderfull

may be we have to mention, that there are two files "list.php". one in the "gallery" and one in the "input" folder. take the one from the gallery folder. the code starts at line 1518.

instead of deleting the lines you can put two "//" in front of the line.

dani