Pages: [1]
Print
Author Topic: Filtered Results Example  (Read 720 times)
dpalame
Pre-Sales
Newbie
*
Posts: 4


« on: July 05, 2010, 12:28:35 AM »

Sorry forgot to post example.

Example:

If I go to: http://demo.escaperadius.com/literadius/golf_locator.htm and use 85006 as the search zip.

1. When I select fine dining and pro shop at the same time the first result is "18-Hole Championship Course".

2. If I select pro shop by itself "18-Hole Championship Course" is not in the result set.

If I was a customer I would assume that "18-Hole Championship Course" has fine dining and a pro shop when selecting both.

Is there a way to fix this so that "18-Hole Championship Course" would not be listed when fine dining and pro shop are selected?

Thanks.
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #1 on: July 05, 2010, 09:10:50 AM »

The golf locator is just an example and doesn't reflect the true offerings at each golf course.
Logged
dpalame
Pre-Sales
Newbie
*
Posts: 4


« Reply #2 on: July 05, 2010, 03:38:56 PM »

I understand it is an example, but the same token rules would apply, correct?  Therefore, "18-Hole Championship Course" has a "fine dining" token assigned to it, but not a "pro shop" token.  When "fine dining" and "pro shop" are selected simultaneously "18-Hole Championship Course" is in the results.

I would assume that "18-Hole Championship Course" would not be returned in the results because both tokens are not assigned to it.

Is this not the case?  Thank you for your help. 
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #3 on: July 05, 2010, 04:58:50 PM »

Location display is based upon an OR operator, so locations are displayed if the token string contains any of the checkbox variables. This implementation takes place in the client (by JavaScript) and toggles locations on/off based upon the checkbox status

AND operations are possible but require some additional programming.
Logged
dpalame
Pre-Sales
Newbie
*
Posts: 4


« Reply #4 on: July 12, 2010, 04:50:05 PM »

Thank you.

Can you point me to where the OR operations are in the code and/or who I would be able to contact to discuss reprogramming to be AND operations?  Thanks for the help.

Damon
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #5 on: July 13, 2010, 09:04:05 AM »

In the client controller script, literadius/views/js_css/xml_g_maps.js the function showMarkers(filter), check the token string for the checked token. This script could be modified to look for exclusive (multiple occurrences).

Another approach and a little more involved is to modify the SQL request on the server. This would also allow the checkbox action to request another set of data, which would query location requests based upon the AND conditional as well as the checkbox status.

Please email us at info@escaperadius.com to request more information on custom programming.
Logged
Pages: [1]
Print
Jump to: