Hey all.
Several weeks ago, I started using the Search Content Type module to make my Events Search a bit more simplistic.
At this time, I believe I have figured out a way for this Events Search to work properly, but I ran into a complication.
As of this moment, I have 3 pieces of criteria that are pulled down from the Submit ($_POST) -- categories, locations, and keywords. (NOTE: Categories and Locations are passed over as arrays as they are multi-select boxes.)
Since I need to keep this search within the theme, my intention is to pass each of these pieces of criteria into a view (3 argument view). I have been searching for documentation on passing multiple arguments to a view, but I am coming up empty.
Anyone have a good reference or any idea how I would go about doing this in a different way?
Right now, I am hitting a altered function of the Search which is grabbing the POST data and assigning it to a series of reference variables. What I need to do, is somehow get these reference variables to be queried against, display the results (in the same way that I currently have my events displayed, not like how the regular search does it), and then keep everything within the scope of the template.
Any help/advice would be greatly appreciated.
Comments
I am not quite clear what you
I am not quite clear what you are going for, but if you want to pass multiple arguments to views, it depends on how you are calling it. For example, if you want to get the output of the view (what it normally outputs on the screen) then you could call this:
If you are grabbing the actual view object and manipulating it, then you could do something as follows:
Not sure if this what you are looking for or not.
Hey J_Ten, Thanks for the
Hey J_Ten,
Thanks for the response.
That logic could work.
Literally, what I am trying to do is from the submit, I need to call up a view that takes 3 arguments (locations, categories, and keywords).
The submit action is in a module file, so all of the work is being done priority right there.
So, what I was planning on doing was hitting the path of the view I created with the 3 arguments (locations and categories need to be able to pass multiple criteria as they are arrays):
Let me know if my logic is flawed in how I am looking at this.
That should work. You would
That should work. You would probably just need to comma separate each of the arguments and then on your view, set each argument to accept multiple values (it is one of the options in the settings for an argument typically).
I think that should work, but it's always possible that it won't.