Condensed CSV
Note
See Condensed Data for explanation how condensed data handling works.
Note
Array references can not be used in Condensed CSV templates.
Contains the definition how to present condensed_data
in the CSV format.
Model
attribute | description |
---|---|
header* [Header Cell] |
Defines the header row of the output file |
row_template* [Data Cell] |
Defines template used to render the individual data rows of the output file |
Header Cell
attribute | description |
---|---|
content* string |
Defines the value to display |
filters[filter] |
Filters to be applied to the value displayed |
Data Cell
Either data
or content
attributes must be present, but not both.
attribute | description |
---|---|
datacdid |
Pointer to the data to be displayed within the given record in condensed_data |
contentstring |
Defines the value to display |
filters[filter] |
Filters to be applied to the value displayed |
Example
{
"header": [
{ "content": "car.make", "filters": ["translate"] },
{ "content": "sedan.price" },
{ "content": "sedan.price_currency" },
{ "content": "sedan.inStock", "filters": ["translate"] },
{ "content": "wagon.price" },
{ "content": "wagon.price_currency" },
{ "content": "wagon.inStock", "filters": ["translate"] }
],
"row_template": [
{ "data": ".0" },
{ "data": ".1.1.0" },
{ "content": "$" },
{ "data": ".1.1.1", "filters": ["translate"] },
{ "data": ".2.1.0" },
{ "content": "$" },
{ "data": ".2.1.1", "filters": ["translate"] }
]
}