Changes between Version 14 and Version 15 of DocManualsearch


Ignore:
Timestamp:
Jan 6, 2010, 4:05:29 AM (8 years ago)
Author:
i-boy
Comment:

i-boy

Legend:

Unmodified
Added
Removed
Modified
  • DocManualsearch

    v14 v15  
    239239}}} 
    240240 
    241  
    242 For search multi-items in one database column: 
    243 1/ In file "search.php" => function: "getSearchParameters()" change $operator from "AND" to "OR" ---  
    244 2/ Use "alias" for the search column, ex: 
     241For search multi-items in one database column:[[BR]] 
     242 
     243- Use '''alias="alias_name"''' for the search column & add '''operator="OR"''' in each field, ex: 
    245244 
    246245{{{ 
    247246    <searchitem name="Item" description="Items"> 
    248247        <layer type="shape" name="Layer"> 
    249             <field type="s" name="DB_Column" description="Item_1" wildcard="0" /> 
    250             <field type="s" name="DB_Column" alias="DB_Column_2" description="Item_2" wildcard="0" /> 
    251             <field type="s" name="DB_Column" alias="DB_Column_3" description="Item_3" wildcard="0" /> 
     248            <field type="s" name="DB_Column" description="Item_1" wildcard="0" operator="OR" /> 
     249            <field type="s" name="DB_Column" alias="DB_Column_2" description="Item_2" wildcard="0" operator="OR" /> 
     250            <field type="s" name="DB_Column" alias="DB_Column_3" description="Item_3" wildcard="0" operator="OR" /> 
    252251              ... 
    253252