Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>My understanding of Views 2 is that it is meant to work with information stored in a database. </p> <p>If you don't have access to the database against which the API was written, then consider writing the objects the API returns into a table. The easiest thing would probably be to create nodes from the objects. Then you could access them with Views 2.</p> <p>This is similar to the approach taken by the Acitivty Stream module (<a href="http://drupal.org/project/activitystream" rel="nofollow noreferrer">http://drupal.org/project/activitystream</a>). It creates nodes from the data returned by various APIs. Check out the module's code for examples of how to create the nodes:</p> <p><a href="http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/activitystream/activitystream.module?view=markup" rel="nofollow noreferrer">http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/activitystream/activitystream.module?view=markup</a></p> <p>On the other hand, if you have access to the source database, you might consider exposing the tables of that database to Views directly. This is the approach taken in the latest Views 2 integration code included with CiviCRM v2.2.3, which you can review here:</p> <p><a href="http://svn.civicrm.org/civicrm/trunk/drupal/modules/views/" rel="nofollow noreferrer">http://svn.civicrm.org/civicrm/trunk/drupal/modules/views/</a></p> <p>CiviCRM is a Drupal module that writes data to tables outside of the Drupal database -- not into nodes. The views integration code exposes most of those tables to Drupal. </p> <p>Hope this helps.</p> <p>-- Andrew B.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload