You are here

README.txt in Views Field 7

CONTENTS OF THIS FILE
---------------------

 * Author
 * Description
 * Installation
 * Usage

AUTHOR
------
Jim Berry ("solotandem", http://drupal.org/user/240748)

DESCRIPTION
-----------
This module allows you to expose field tables and columns as base tables and
fields, respectively, to Views. Possible use cases for this module are mentioned
at http://drupal.org/project/views_field.

INSTALLATION
------------
To use this module, install it and the Views module in a modules directory.
See http://drupal.org/node/895232 for further information.

From the modules page on your site, enable this module and that should trigger
enabling its dependent module.

USAGE
-----
Add one or more fields to an entity using the fields UI. For a node content type
visit admin/structure/types/manage/<content-type>/fields/<field_name>. To expose
columns from the field table, check the "Expose as base table" box and
select the "Columns to expose" in the corresponding form element.

Visit admin/structure/views/add to create a view using the exposed field (or
revision) table as the base. In the "Content" form element, select "<field_name>"
or "<field_name> (revision)" as the base. By default, Views will add the first
column of the "field" to the view. For example, with a text field, this is the
"value" column.

At this point, adding the "entity" field, e.g. "Content: <field_name>," to the
view will result in SQL errors. Adding a relationship to the entity table and
using this relationship with the "entity" field will eliminate the sQL errors.
However, adding the "entity" field to this view runs counter to the purpose of
this module.

Multiple "exposed" field tables may be related by a multi-column join using the
primary key columns. This module provides a programmatic interface to trigger
this relation. A user interface is provided by the combination of the Field group
and Field group views modules. These projects are available at:

  http://drupal.org/project/field_group
  http://drupal.org/project/field_group_views

To enable this join, visit admin/structure/types/manage/<content-type>/display.
Add a field group and move fields into the group. Expand the format settings
form and select the field to be considered the primary field. Typically, this
will be the field that is used in all of the views based on the grouped fields.
Click "Update" and "Save" buttons to update the Views data and create a sample
view using the primary field table as the base table.

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Author
  4. * Description
  5. * Installation
  6. * Usage
  7. AUTHOR
  8. ------
  9. Jim Berry ("solotandem", http://drupal.org/user/240748)
  10. DESCRIPTION
  11. -----------
  12. This module allows you to expose field tables and columns as base tables and
  13. fields, respectively, to Views. Possible use cases for this module are mentioned
  14. at http://drupal.org/project/views_field.
  15. INSTALLATION
  16. ------------
  17. To use this module, install it and the Views module in a modules directory.
  18. See http://drupal.org/node/895232 for further information.
  19. From the modules page on your site, enable this module and that should trigger
  20. enabling its dependent module.
  21. USAGE
  22. -----
  23. Add one or more fields to an entity using the fields UI. For a node content type
  24. visit admin/structure/types/manage//fields/. To expose
  25. columns from the field table, check the "Expose as base table" box and
  26. select the "Columns to expose" in the corresponding form element.
  27. Visit admin/structure/views/add to create a view using the exposed field (or
  28. revision) table as the base. In the "Content" form element, select ""
  29. or " (revision)" as the base. By default, Views will add the first
  30. column of the "field" to the view. For example, with a text field, this is the
  31. "value" column.
  32. At this point, adding the "entity" field, e.g. "Content: ," to the
  33. view will result in SQL errors. Adding a relationship to the entity table and
  34. using this relationship with the "entity" field will eliminate the sQL errors.
  35. However, adding the "entity" field to this view runs counter to the purpose of
  36. this module.
  37. Multiple "exposed" field tables may be related by a multi-column join using the
  38. primary key columns. This module provides a programmatic interface to trigger
  39. this relation. A user interface is provided by the combination of the Field group
  40. and Field group views modules. These projects are available at:
  41. http://drupal.org/project/field_group
  42. http://drupal.org/project/field_group_views
  43. To enable this join, visit admin/structure/types/manage//display.
  44. Add a field group and move fields into the group. Expand the format settings
  45. form and select the field to be considered the primary field. Typically, this
  46. will be the field that is used in all of the views based on the grouped fields.
  47. Click "Update" and "Save" buttons to update the Views data and create a sample
  48. view using the primary field table as the base table.