[contributions(DRUPAL-5):mfredrickson] /modules/bio bio_views.inc /modules/bio README.txt bio.module
User: mfredrickson Branch: DRUPAL-5 Date: Sat, 26 May 2007 00:06:47 +0000 Added files: /modules/bio bio_views.inc Modified files: /modules/bio README.txt bio.module Log message: With the views patches in RTBC state, pre-emptively checking in bio's new views support. See also: #142746 From the recently updated README: The bio module now boasts integration with the views module. This integration takes two forms: 1. Custom filters: Bio has two useful filters, Node: Type is bio and Bio: Author has bio node - Node: Type is bio node -- This is useful for shipping premade views that rely on bio, but are not tied to a particular type of node acting as the bio node (e.g. on one site it might be "Biography" on another "profile"). - Bio: Author has bio node -- This is useful for only returning results where the author has created a bio node. That way, if you are exposing bio fields (e.g. the "interests" taxonomy), you can be sure that a bio node exists for every other node returned in the query. 2. Duplicating existing views tables, fields, filters, and sorts: Bio "steals" the views definitions of every other module and makes them its own. For example, the node module exposes the "Node: Title" field and filters. Bio steals these and creates the "Bio: Node: Title". Using these fields you can create a view that returns a list of blog nodes with the author's bio node title. Don't worry, it sounds complicated at first, but you'll get the hang of it in no time. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/bio/bio_views.inc http://cvs.drupal.org/diff.php?path=contributions/modules/bio/README.txt&old... http://cvs.drupal.org/diff.php?path=contributions/modules/bio/bio.module&old...
participants (1)
-
drupal-cvs@drupal.org