We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29676
    • 45 Posts
    Can anyone help?

    I have a temporary test page here as a static html page ... http://www.appliedvoip.com.au/spreadsheet.htm

    I need to add this to a modx page as a snippet

    It comes from http://code.google.com/p/php-excel-reader and works fine as a standalone feature but cannot get it working in modx as I don’t understand the functionlity of snippets.

    There are 3 elements to this:

    Above the head is <?php
    error_reporting(E_ALL ^ E_NOTICE);
    require_once ’excel_reader2.php’;
    $data = new Spreadsheet_Excel_Reader("international.xls");
    ?>

    In the body is <?php echo $data->dump(); ?>

    This grabs the Excel data and displays it nicely on the page but I want to add it to modx

    can anyone help - I’m willing to pay a small fee if someone can do this for me!

    Thanks

    Steve
      • 32982
      • 674 Posts
      I think the snipet code is like:

      require_once ’excel_reader2.php’;
      $data = new Spreadsheet_Excel_Reader("international.xls");
      echo $data->dump();

      If not work test whith a blank templete.
      Hi.
        Jabiertxof (formerly XYZVISUAL)
        My bussines: http://marker.es
        https://www.youtube.com/user/jabiertxof/videos
        • 29676
        • 45 Posts
        I’m amazed with this response and accuracy of this reply! It works fine!

        Thank you very much!

        Do contact me if you’re interested in helping out on a regular basis on a freelance arrangement

        [email protected]

        Steve