[mapguide-users] Some changes I've made to the standard search
Jamo
adam.jamison at portbris.com.au
Thu Nov 10 20:07:16 EST 2011
Hey guys/girls,
If anyone is interested I've modified the existing fusion search to allow
searching on multiple properties, I've no tried it on anothe site but it
functions for me just fine, it also takes into account the layers filter.
Just thought I'd post it up someone else might find it useful :)
differences in the widget xml are as follows
/Filter FIRST_PROP_NAME LIKE '%25$USER_VARIABLE1%25' AND
SECOND_PROP_NAME LIKE '%25$USER_VARIABLE2%25'/
each additional property should be given the next number IE $USER_VARIABLE3,
$USER_VARIABLE4.
note the %25 is a wildcard %.
/<UserVariables>FIRST_PROP_NAME Label,SECOND_PROP_NAME
Label</UserVariables>/
for each $USER_VARIABLE you can define a label to be displayed on the search
form.
/<Layers>
<Layer>
<Name>FirstLayer</Name>
</Layer>
<Layer>
<Name>SecondLayer</Name>
</Layer>
<Layer>
<Name>ThirdLayer</Name>
</Layer>
</Layers>
/
is a list of layers to be searched, note that each layer should contain the
required properties being filtered on and returned :)
http://osgeo-org.1803224.n2.nabble.com/file/n6984053/pobSearch.zip
pobSearch.zip
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Some-changes-I-ve-made-to-the-standard-search-tp6984053p6984053.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list