We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for <a href="http://modxcms.com/extras/package/595">csv2html 0.3-Final</a> by Jako.

    Brief Description:
    Parse and display a csv file (as a table by default). Uses PHx for custom template chunks.

    Parameters:
    &csv - csv file - integer: MODx docId
    - begins with http: url
    - begins with assets: relative to MODx base_path
    - otherwise absolute server path
    &tplOuter - outer template | defaults to table layout | use [ +wrapper+ ] for content
    &tplHeading - heading template | defaults to table heading | use empty string to disable
    &tplContent - heading template | defaults to table heading | use [ +fieldname+ ] for every field
    &heading - use first line/entry of csv as field names | defaults to true
    &conditions - basic SQL-like conditions for row matching
    Keywords: &apos;equals&apos;, &apos;is&apos;, &apos;is not&apos;, &apos;is less than&apos;, is greater than&apos;,
    &apos;is less than or equals&apos;, &apos;is greater than or equals&apos;,
    &apos;contains&apos;, &apos;does not contain&apos;
    &sortBy = sort entries by this field
    &sortDir = asc or desc | defaults to asc
    &offset = number of rows to ignore from beginning of csv data
    &limit = limits the number of returned csv rows to specified amount | defaults to 10;
    &fields = override field names | comma separated list - useful if csv does not contains field names;