Development

HowToExportTabularData (diff)

You must first sign up to be able to contribute.

Changes between Version 1 and Version 2 of HowToExportTabularData

Show
Ignore:
Author:
anonymous (IP: 85.103.54.223)
Timestamp:
02/02/06 21:38:30 (11 years ago)
Comment:

some fixes

Legend:

Unmodified
Added
Removed
Modified
  • HowToExportTabularData

    v1 v2  
    33I 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: 
    44 
    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. 
    76{{{ 
    87export_excel: 
    109  param:  {module: mymodule, action: myaction} 
    1110}}} 
    12  * if I use mod_rewrite, add a new rule to the .htaccess to ignore the .csv files 
    1311 
     12 * If Apache's mod_rewrite is being used, add a new rule to the .htaccess file to ignore .csv files. 
    1413{{{ 
    1514RewriteCond %{REQUEST_URI} !\.csv$ 
    1615}}} 
    17  * declare the mymodeule/myaction view with a special content-type in the view.yml 
    1816 
     17 * Declare the mymodule/myaction view with a special content-type in the view.yml file. 
    1918{{{ 
    2019myactionSuccess: 
    2322    content-type: application/msexcel 
    2423}}} 
    25