You are here

README.txt in Data 7

Same filename and directory in other branches
  1. 8 README.txt
  2. 6 README.txt

Data module
===========

The Data module provides

* An API for dynamically allocating tables for single-row records
* An API for insert/update/delete operations
* Automatic views integration
* Together with CTools module: exportable configurations
* Together with schema module: schema inspection and fixing

Its companion Data UI provides

* UI to add new database tables
* UI to add or alter columns to existing tables managed by Data module
* Default views for tables managed by Data module

Use Data Entity module if you would like to declare your data tables as entity
types, and thus each record as an entity:

* Install Data Entity
* Go to admin/structure/data
* Edit table to be declared as an entity type
* Click on "Entity type" tab
* Select the "Define table as an entity type" checkbox
* Select a field to use as the entity ID (this must be integer or serial)

Use Data Search module if you would like to search one or more columns of your
data tables:

* Install Data Search
* Go to admin/content/data
* Edit table to be indexed
* Click on "Configure search" tab
* Check table columns to be indexed

Working with HTML Fields

If you are working with a feed that has one or more fields that contain markup
you can specify that those individual fields to be output with the HTML as
opposed to escaped when using views.

1. Navigate to admin/build/data
2. Select 'Edit' for the table that you are working with
3. Click on the 'Configure views' tab
4. Identify the field that contains HTML. For the 'Field handler' column, select
   the 'views_handler_field_data_markup'

Working with Views and date fields

A field on your table can be declared as a date field to Date Views module if
it contains data in one of the following formats:
- Unix timestamp
- MySQL DATETIME format
- ISO date format (as supported by Date module)
Once a Data table field has had its date settings configured, it will be
available in the combined date filter and argument handlers.

For the field handler, use the views_handler_field_date handler. Fields whose
formats is other than unix timestamp will need the patch to Views at
http://drupal.org/node/2178287.

Recommendations
===============

Check out Feeds for importing content into Data tables. A working example
thereof can be found in Managing News.

http://drupal.org/project/feeds
http://managingnews.com

File

README.txt
View source
  1. Data module
  2. ===========
  3. The Data module provides
  4. * An API for dynamically allocating tables for single-row records
  5. * An API for insert/update/delete operations
  6. * Automatic views integration
  7. * Together with CTools module: exportable configurations
  8. * Together with schema module: schema inspection and fixing
  9. Its companion Data UI provides
  10. * UI to add new database tables
  11. * UI to add or alter columns to existing tables managed by Data module
  12. * Default views for tables managed by Data module
  13. Use Data Entity module if you would like to declare your data tables as entity
  14. types, and thus each record as an entity:
  15. * Install Data Entity
  16. * Go to admin/structure/data
  17. * Edit table to be declared as an entity type
  18. * Click on "Entity type" tab
  19. * Select the "Define table as an entity type" checkbox
  20. * Select a field to use as the entity ID (this must be integer or serial)
  21. Use Data Search module if you would like to search one or more columns of your
  22. data tables:
  23. * Install Data Search
  24. * Go to admin/content/data
  25. * Edit table to be indexed
  26. * Click on "Configure search" tab
  27. * Check table columns to be indexed
  28. Working with HTML Fields
  29. If you are working with a feed that has one or more fields that contain markup
  30. you can specify that those individual fields to be output with the HTML as
  31. opposed to escaped when using views.
  32. 1. Navigate to admin/build/data
  33. 2. Select 'Edit' for the table that you are working with
  34. 3. Click on the 'Configure views' tab
  35. 4. Identify the field that contains HTML. For the 'Field handler' column, select
  36. the 'views_handler_field_data_markup'
  37. Working with Views and date fields
  38. A field on your table can be declared as a date field to Date Views module if
  39. it contains data in one of the following formats:
  40. - Unix timestamp
  41. - MySQL DATETIME format
  42. - ISO date format (as supported by Date module)
  43. Once a Data table field has had its date settings configured, it will be
  44. available in the combined date filter and argument handlers.
  45. For the field handler, use the views_handler_field_date handler. Fields whose
  46. formats is other than unix timestamp will need the patch to Views at
  47. http://drupal.org/node/2178287.
  48. Recommendations
  49. ===============
  50. Check out Feeds for importing content into Data tables. A working example
  51. thereof can be found in Managing News.
  52. http://drupal.org/project/feeds
  53. http://managingnews.com