1 |
85ad3d82
|
Assos Assos
|
Views Data Export
|
2 |
|
|
=================
|
3 |
|
|
|
4 |
|
|
Introduction
|
5 |
|
|
------------
|
6 |
|
|
|
7 |
|
|
This module is designed to provide a way to export large amounts of data from
|
8 |
|
|
views. It provides a display plugin that can rendered progressively in a batch.
|
9 |
|
|
Style plugins are include that support exporting in the following types:
|
10 |
|
|
|
11 |
|
|
* CSV
|
12 |
|
|
* Microsoft XLS
|
13 |
|
|
* Microsoft Doc
|
14 |
|
|
* Basic txt
|
15 |
|
|
* Simple xml.
|
16 |
|
|
|
17 |
|
|
Using the "Views Data Export" module
|
18 |
|
|
------------------------------------
|
19 |
|
|
|
20 |
|
|
1. Add a new "Data export" display to your view.
|
21 |
|
|
2. Change its "Style" to the desired export type. e.g. "CSV file".
|
22 |
|
|
3. Configure the options (such as name, quote, etc.). You can go back and do
|
23 |
|
|
this at any time by clicking the gear icon next to the style plugin you just
|
24 |
|
|
selected.
|
25 |
|
|
4. Give it a path in the Feed settings such as "path/to/view/csv".
|
26 |
|
|
5. Optionally, you can choose to attach this to another of your displays by
|
27 |
|
|
updating the "Attach to:" option in feed settings.
|
28 |
|
|
|
29 |
|
|
Advanced usage
|
30 |
|
|
--------------
|
31 |
|
|
|
32 |
|
|
This module also exposes a drush command that can execute the view and save its
|
33 |
|
|
results to a file.
|
34 |
|
|
|
35 |
|
|
drush views-data-export [view-name] [display-id] [output-file]
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
History
|
39 |
|
|
-------
|
40 |
|
|
|
41 |
|
|
This module has its roots in the export module that was part of the views bonus
|
42 |
|
|
pack (http://drupal.org/project/views_bonus). However, massive changes were
|
43 |
|
|
needed to make the batch export functionality work, and so this fork was
|
44 |
|
|
created. See: http://drupal.org/node/805960
|