Changes between Version 1 and Version 2 of HowToExportTabularData
- Timestamp:
- 02/02/06 21:38:30 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToExportTabularData
v1 v2 3 3 I have a mymodule/myaction that outputs csv (i.e. tabular data separated by ;). If I want to point to it and have my users open it with Excel as a spreadsheet, I need to do a few things: 4 4 5 * add a special routing rule for mymodule/myaction which specifies a custom suffix 6 5 * Add a special routing rule for mymodule/myaction which specifies a custom suffix. 7 6 {{{ 8 7 export_excel: 10 9 param: {module: mymodule, action: myaction} 11 10 }}} 12 * if I use mod_rewrite, add a new rule to the .htaccess to ignore the .csv files13 11 12 * If Apache's mod_rewrite is being used, add a new rule to the .htaccess file to ignore .csv files. 14 13 {{{ 15 14 RewriteCond %{REQUEST_URI} !\.csv$ 16 15 }}} 17 * declare the mymodeule/myaction view with a special content-type in the view.yml18 16 17 * Declare the mymodule/myaction view with a special content-type in the view.yml file. 19 18 {{{ 20 19 myactionSuccess: 23 22 content-type: application/msexcel 24 23 }}} 25