We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42049 ☆ A M B ☆
    • 250 Posts
    Bit of a weird one here...

    I've been using MIGX for... well, quite some time, however recently (and I'm afraid I can't give an exact version or date!) when clicking on export view, the data opens in a new browser tab, instead of popping up as a download .csv

    Can anyone help?

    Many thanks
      GEL STUDIOS
      MODX Professional | MODX Ambassador

      Website | Email | Twitter | Facebook
      • 21739
      • 49 Posts
      This could be server related: mime type of csv not set to 'download'.
      Try this in your htaccess file if you are using apache: 'AddType application/octet-stream .csv'.
        • 42049 ☆ A M B ☆
        • 250 Posts
        Thanks for the reply, I did this, however with no effect...

        Below is my file.

        AddType application/octet-stream .csv
        
        Header set Access-Control-Allow-Origin "*"
        Header set Access-Control-Allow-Headers "origin, x-requested-with, content-type"
        Header set Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
        
        ## EXPIRES CACHING ##
        <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType image/jpg "access 1 year"
        ExpiresByType image/jpeg "access 1 year"
        ExpiresByType image/gif "access 1 year"
        ExpiresByType image/png "access 1 year"
        ExpiresByType text/css "access 1 month"
        ExpiresByType text/html "access 1 month"
        ExpiresByType application/pdf "access 1 month"
        ExpiresByType text/x-javascript "access 1 month"
        ExpiresByType application/x-shockwave-flash "access 1 month"
        ExpiresByType image/x-icon "access 1 year"
        ExpiresDefault "access 1 month"
        </IfModule>
        ## EXPIRES CACHING ##
        
        RewriteEngine on
        RewriteBase /
        
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        
        RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
        
        RewriteCond %{HTTP_HOST} !^$
        RewriteCond %{HTTP_HOST} !^www\. [NC]
        RewriteCond %{HTTPS}s ^on(s)|
        RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
          GEL STUDIOS
          MODX Professional | MODX Ambassador

          Website | Email | Twitter | Facebook
          • 42049 ☆ A M B ☆
          • 250 Posts
          OK so I've rolled my MIGX version back to 2.6.8 - and it works fine...
            GEL STUDIOS
            MODX Professional | MODX Ambassador

            Website | Email | Twitter | Facebook
            • 24168
            • 45 Posts
            Getting the same issue. Maybe worth raising this as a bug if you haven't already?
              Stewart
              Freelance Web Designer & Developer:
              http://www.qodo.co.uk

              My extras:
              TwitterX http://modx.com/extras/package/twitterx
              TableOfContentsX http://modx.com/extras/package/tableofcontentsx
              • 42049 ☆ A M B ☆
              • 250 Posts
              Quote from: Qodo at Mar 08, 2015, 10:39 AM
              Getting the same issue. Maybe worth raising this as a bug if you haven't already?

              I'm glad I'm not alone here!

              I was hoping that Bruno would of seen this by now.

              I'm wondering how we summon him, is it a bit like the Power rangers calling Zordon?

                GEL STUDIOS
                MODX Professional | MODX Ambassador

                Website | Email | Twitter | Facebook
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                What, exactly, do you mean by "clicking on export view"?
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 42049 ☆ A M B ☆
                  • 250 Posts
                  When you make a MIGX DB CMP there is an option to export view.

                  Normally, it creates a downloadable CSV of the table.
                    GEL STUDIOS
                    MODX Professional | MODX Ambassador

                    Website | Email | Twitter | Facebook
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Ah. I was looking at a regular MIGX TV.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 24168
                      • 45 Posts
                      Submitted issue @ Github:

                      https://github.com/Bruno17/MIGX/issues/190
                        Stewart
                        Freelance Web Designer & Developer:
                        http://www.qodo.co.uk

                        My extras:
                        TwitterX http://modx.com/extras/package/twitterx
                        TableOfContentsX http://modx.com/extras/package/tableofcontentsx