Customise Search Page
This section describes how to customise the search page. All the customisation involves setting variables in the pp_config.php file. The normal contents of the relevant section of that file are:
$TableNames = "pedigree:Pedigree;shetland:Shetland Sheepdog;goats:Goats;horse:Horse";// e.g. pedigree:Pedigree"; $FieldsToSearch = "Name;PreTitle;PostTitle;Registration;Color;DOB"; $OrderByFields = "name:Name;dob:Date of Birth"; $GenderOptions = "ignore:Ignore;male:Male;female:Female"; $DefaultSearchString = "red";
$TableNames set the list of tables that can be searched. The list must be pairs of names separated by a semi-colon. Each pair is separated by a colon. The first name in the pair is the table name, the second is the name as you would like it to appear in the search page.
$FieldsToSearch is a semi-colon separated list of fields to search.
$OrderByFields is a list of fields the user can select from to set how the search results are ordered. The list must be pairs of names separated by a semi-colon. Each pair is separated by a colon. The first name in the pair is the actual field name, the second is the name as you would like it to appear in the search page.
$DefaultSearchString sets the string you want to appear in the "Search string:" field.