By tonyp001 on
I’m trying to develop an add-on for the events module that will get all the titles from event nodes for a particular day, but I’m struggling to filter the results when I create a view of the event calendar. Right now, I can query the database and retrieve all the nodes for a single day, but my goal is to get only the titles that are filtered by that view.
Does anyone have any idea how this can be done?
If someone could shoot me an idea, send a link to a previous topic, or show an example of something similar, that could steer me toward the right direction, I would REALLY appreciate it.
Also, if I need to clarify my need or give some more detail, just let me know.
Comments
Use views_build_view
Use
views_build_view($type = 'result', $view /*, ... */);to retrieve the nodes a view would display. See fileviews/views.modulefor details.--
~/.singatrue: file not found
Use List or Table View for
Use List or Table View for your view, and pick the fields you want. In this case, only Node title.
You don't say whether you're creating the View with the user interface within Drupal, or coding it, but either way it should be the same.