coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: FuzzyD on July 04, 2008, 09:29:53 PM

Title: [Solved]: Change Default Checked Boxes for Searches
Post by: FuzzyD on July 04, 2008, 09:29:53 PM
I apologize in advance if this has been answered. I tried multiple searches on the forum before deciding to post this.

There are three search fields that are checked by default on the Search Page:

Title
Caption
Keywords

Since the only field worth searching in for my database is by filename, I would like to have Filename checked by default for new searches, and uncheck the other three fields.  I tried looking for the code to change in search.php and searchnew.php but couldn't figure it out myself.

Thanks in advance for the help!
Title: Re: Change Default Checked Boxes for Searches
Post by: Nibbler on July 04, 2008, 09:33:51 PM
Just remove 'checked="checked"' from the inputs you don't want checked and add it to the one you do want checked.
Title: Re: Change Default Checked Boxes for Searches
Post by: FuzzyD on July 04, 2008, 11:08:02 PM
Quote from: Nibbler on July 04, 2008, 09:33:51 PM
Just remove 'checked="checked"' from the inputs you don't want checked and add it to the one you do want checked.

Thank you : )  Solved.