Trigger Specific 'Where' values with a button
2 posts by 2 authors in: Forums > CMS Builder
Last Post: December 16, 2009 (RSS)
I'm sure the subject is completely wrong for what I need. Here's the simple approach.
in CMSB I have a single "contact" section editor with a list of thousands of contacts.
I have a web page that lists each state of the US. When you click on a state, it will pop up a window that will display contact information for everyone in JUST THAT STATE. that page uses the 'where' filter contact_location = alabama...
The files set up are simple. 1 file that displays ALL of the states. and 52 files that display the php viewer code including the 'where' filter for each state. With me so far?
I want 1 file to display the states and 1 file to display the different contact information for each state. sort of like a search results... only problem is, I don't know how to execute. Can you help?
in CMSB I have a single "contact" section editor with a list of thousands of contacts.
I have a web page that lists each state of the US. When you click on a state, it will pop up a window that will display contact information for everyone in JUST THAT STATE. that page uses the 'where' filter contact_location = alabama...
The files set up are simple. 1 file that displays ALL of the states. and 52 files that display the php viewer code including the 'where' filter for each state. With me so far?
I want 1 file to display the states and 1 file to display the different contact information for each state. sort of like a search results... only problem is, I don't know how to execute. Can you help?
John Tedesco
Creative Director
JAM Graphics
Creative Director
JAM Graphics
Re: [jtedescojam] Trigger Specific 'Where' values with a button
By Chris - December 16, 2009
Hi jtedescojam,
If you create a standard list viewer page for your contacts and save it as contactList.php, you'll be able to find contacts matching a specific state by linking to contactList.php?contact_location=alabama . Therefore, your state list page can have 52 links to contactList.php, each with different query strings.
I hope this helps! Please let me know if you have any questions.
If you create a standard list viewer page for your contacts and save it as contactList.php, you'll be able to find contacts matching a specific state by linking to contactList.php?contact_location=alabama . Therefore, your state list page can have 52 links to contactList.php, each with different query strings.
I hope this helps! Please let me know if you have any questions.
All the best,
Chris
Chris