Hello,
I was wondering if anyone has built an exposed filter in a block for Exhibit + Views. The idea is that when the exhibit node loads, there will be facets already chosen.
For instance, I could have a Location City as node field for the feeds display on views. I would like to build a block that any user could put a city name into form on that block.
When the form is submitted, the exhibit loads with the city facet chosen.
All the other facets will load and the exhibit would load normally, just the value in the form would serve as criteria for preselecting facets.
The same behavior that happens when you use the Text Search in the block provided by the module. Only I see the block being available on all pages.
Am I making sense?
Thanks,
Zen
Comments
Comment #1
aWileyMcGee CreditAttribution: aWileyMcGee commentedGot it!!
First you install the Exhibit module:
http://drupal.org/project/exhibit
There are some great links on there by one Josh Huckabee on how to install the exhibit module and get it working with Drupal.
http://joshhuckabee.com/getting-started-exhibit-using-drupal-and-views-p...
http://joshhuckabee.com/getting-started-exhibit-using-drupal-and-views-p...
http://joshhuckabee.com/getting-started-exhibit-using-drupal-and-views-p...
Go ahead and read those, it is fine, I will wait.
Once you have setup your exhibit content type, you can enter into the Facet Definition area, your text search facet.
Edit the above line to include this:
So it will look like this.
Then in your custom module you build a block using hook_block.
http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hoo...
Then you build a form.
http://drupal.org/node/751826
Then in your submit function you use drupal_goto, like the following:
Comment #2
aWileyMcGee CreditAttribution: aWileyMcGee commentedI am setting this to fixed as my question has been answered. I hope this helps other folks.
Resolved,
Zen