Buck Anderson - DNN Professor Member Login
May 21, 2012

Article Search  
Article Index

Click to grab the RSS feed for the DNN Professor Article IndexDotNetNuke Tutorials and Articles

We cover a lot of different DNN topics on this site - this article index gives you a pretty good idea of the DotNetNuke tutorials, XMod tutorials, DNN training, DNN hosting, and Internet Marketing subjects we cover for beginners and advanced DotNetNuke users.

The following is a complete index of all articles on this site - presented in the most current to oldest article sequence. You can view categories and search the index by subject.

Check back often for new articles, tips on our Business Directory, or have articles conveniently delivered to your favorite program by clicking the RSS feed icon above.


Share    
18
Business Directory and XMod Search and Filter Functions

DNN Business Directory

If you want your visitors to search by a state, in the XMod module action menu you can go to Configure XMod Module >> Data Settings >> User search Options and add cboState as one of the search fields.

XMod user search options

You can also configure the sort options on the Display Settings tab to include cboState. When the user selects State, the list is organized into listings by State.

xmod sort options

You need to understand that the Search and the Sort Filter options can work independently of each other.

Another method is to have a dashboard link page that lists the states with links that pass the cboState value to the listing page.

An example would be:

http://dnnprofessor.com/DNNDirectory.aspx?state=MN

To accomplish this you need to configure the Filter Using URL Parameter which is located in Configure Xmod Module >> data Settings >> Filtering

XMod filter using URL parameters

You can set four values for the cboState field:

Filter
Use Value
Exact Match
Parameter Name

In our link example above, if you use 'Use Value" Xmod will be looking for the state abbreviation (example: MN)

If this is unchecked it will look for the state name (example: Minnesota)

XMod DNN filter options

The parameter name would be state.

When you build a link to the listing page, XMod will recognize the state parameter in these settings and return the proper result set.

Use Value Checked: ?state=MN or Use Value Unchecked: ?state=Minnesota

Reference Links:

Business Directory Dashboard Navigation Using XMod Filtering

How Do I Add a Linked Category Dashboard to XMod?

How To Use the FatGeorge Tag Cloud Control

Configuring XMod Modules - Search

Configuring XMod Modules - Filtering

You can also look at the Advanced Search form that is included with Business Directory.
This form is designed to filter by State (and other values) and will only return values if a listing exists for that state

Configure Advanced Search

Here is the Advanced Search in action.

I would also recommend that you upgrade to the new version patch for Xmod.

XMod 5.5.4 Released

Enjoy,
Buck

Posted in: XMod Applications

Share    

Post Rating

Comments

Anton
# Anton
Friday, February 18, 2011 11:06 AM
we have BD installed and are using single category display template, simple list view. The listings are not monetized and are only added/approved by the single admin. Basically the most basic setup. What I can't seem to figure out is how to configure Xmod, and BD to display only a single category, on the page where Xmod is running. We have several pages that BD needs to be configured on, but using the tuts. I'm only able to display all of the categories.
Any help or nudge in the right direction is much appreciated
Buck
# Buck
Friday, February 18, 2011 11:59 AM
Hi Anton,

If your intentions are to create page several instances of Business Directory and have each page only show listings from a specific category:

You need to configure each XMod page instance to filter using form values.

Configure Your Xmod Module >> Data Settings >> Filtering >> check the box - Filter Using Form Value

Select the field cboCategory and check the filter box, check the use value box and enter the value of your category (not category description) in the field value textbox.

This instance of XMod will now be filtered by the specific category value that you have selected.

Reference:
http://dnndev.com/help/xmod/Content/Configure_XMod_Module.htm
Anton
# Anton
Friday, February 18, 2011 12:09 PM
Awesome!
Just tried it and worked! Thanks Buck! File under solved.

Join the Discussion!


Buck Anderson - DNN ProfessorLet us know what you think. Or ask us anything. Or offer your own sage advice.

The only rule: RESPECT THIS HOUSE! Postings that contain abusive language and/or personal attacks will be cheerfully VAPORIZED. One cross word and – POOF! – your well-thought-out post will be gone in a puff of smoke.

          Buck

RSS comment feed RSS feed for comments on this post | Permalink URL

Note: For security, public comments require an Email address (Email will not be published and is also used for your Gravatar image)

Post Comment

Only registered users may post comments.


Copyright 2004 - 2012 by Jive Media Group LLC. All Rights Reserved.  | Terms of Use | Privacy Statement | Email White Listing | Site Map