{{ url.format }} – Output Format

A link to download current page records in a specific format.

Basic usage:

{{ url.format }}

Usage with parameters:

{{ url.format(Format, Icon, Path to a custom icon, Icon Size, CSV Layout, Column separator) }}

Parameters:

  1. Format (optional) – Select the output format.
    • csv – (CSV. Generates CSV file.)
    • json – (JSON. Generates JSON file..)
    • xml – (XML. Generates XML file..)
  2. Icon (optional) – Render HTML anchor with an icon or just a link.
    • (Default. Link with an icon)
    • linkonly – (Link only)
  3. Path to a custom icon (optional) – Leave it empty to use available file format icon.
  4. Icon Size (optional) – Select the icon size in pixels.
    • 16 – (16 x 16)
    • 32 – (32 x 32)
    • 48 – (48 x 48)
  5. CSV Layout (optional) – Please select the CSV File type Layout to render the export file content
  6. Column separator (optional) – The delimiter/separator character may either be a semicolon (;) or comma (,) used to separate items in a CSV file.
    • , – (Comma separated)
    • ; – (Semicolon separated)

Example:

{{ url.format("csv","linkonly","",16,"",",") }}


What are your feelings

Leave a Reply

Updated on January 9, 2025