Calendar && (Search API || Facets)

Events happening in the community are now at Drupal community events on www.drupal.org.
Traverus's picture

So I've been tangling with a problem for a couple weeks now. I love the way Search API works. Create a search index, select some fields, create facets on those fields (with Facet API) and you've built up a really neat interface for users to easily gain access to content.

I had the idea to build a calendar with faceted search based on events: one problem. I create a view off of a Search API index that contains only events, but the calendar formatter isn't available.

I've tried attacking the problem from the views point of view. Maybe I can make the exposed filters more usable. No luck there, I can't access the views data to build a robust enough form in the form API. I've looked at Better Exposed Filters, but you can only make a list with checkboxes for fields that have limited scope (taxonomy terms, node content types).

I've tried wading through the calender module code and views code to figure out how to build up the entire page myself but I've gotten extremely confused.

Any suggestions or links to things that may help would be welcome. Here is a summarized list of paths that are open to discussion (feel free to bring up options I don't have listed!)

-How can I take a view object and its data and then run it through the calendar formatter programatically (I assume somehow I'm going to have to tell the calendar module what the date fields are)

or

-How can I gain access to the view results data so that I can build robust interface via the form API (like a faceted search)

To me, the path of least resistance seems to be just figuring out what I need to do to get Search API to be able to output in a calendar format. Thanks again for your time and responses!

Comments

can you get the search api

jaypark's picture

can you get the search api views results formatted as json?

Event Management Systems

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week