Buck Anderson posted on April 22, 2009 00:10 :: 2689 Views

In the XMod module action menu >> Configure XMod Module >> Data Settings >> Filter Options
you can configure the module to Filter Using Form Values or Filter Using URL Parameter.

Filter Using URL Parameter Example:
In the following example, we have added to the Filter using URL Parameter section the values for Country, cboState, Region and cboCategory.
Note: If your Business Directory listing includess a non-US state, Region is used instead of cboState form value.
I have chosen to give the form fields above the following values.
cboCateory parameter name cat
cboState parameter name State
Country parameter name Country
Region parmeter name Region




Note: If I was using the Category/Sub Category forms, in this example, I would also include a parameter name for the SavedSubCategory field.
Example:
SavedSubCategory parmeter name scat
I checked the boxes for all of the above parameters to Filter, Use Value, and Exact Match.
Save Changes
Here are some URL examples that you can try adding to the URL bar of your browser for Business Directory Demonstration 3 at our training site:
http://training.dnnprofessor.com/tabid/64/xmmid/401/xmview/1/Default.aspx?cat=Category+7&Country=US&State=MN
http://training.dnnprofessor.com/tabid/64/xmmid/401/xmview/1/Default.aspx?cat=Category+1&Country=US&State=MN
http://training.dnnprofessor.com/tabid/64/xmmid/401/xmview/1/Default.aspx?State=MN&cat=Category+7&Country=US
http://training.dnnprofessor.com/tabid/64/xmmid/401/xmview/1/Default.aspx?Country=US
http://training.dnnprofessor.com/tabid/64/xmmid/401/xmview/1/Default.aspx?Country=AU
http://training.dnnprofessor.com/tabid/64/xmmid/401/xmview/1/Default.aspx?Country=AU&Region=NSW
If Demonstration 3 used the Category/Sub Category form a link might look like the following:
http://training.dnnprofessor.com/tabid/64/xmmid/401/xmview/1/Default.aspx?cat=Category+7&scat=Sub Category 7&Country=US&State=MN
By configuring the filtering on you Business Directory XMod module instance and creating a dashboard using a DNN Text/HTML module and by adding links like the ones above, you can create very powerful filtering of your listing information.
Buck