This is one that has been asked before but none of the solutions I've seen seem to work.
The problem: you have a data source, say JSON, and make an asset list of the data source records.
You can put a Default Format on the list that will set the display of the individual records - you can use keywords,including field value keywords, etc.
Well and good. Works fine, but type formats in asset listing can't contain conditional logic, either conditional keywords or directly code conditions.
As I commented in a previous post, this just seems an oversight - no good reason whatsoever it has not been implemented. And you need it! If there are empty fields in the JSON you want to ignore any associated display.
The solution in other cases (where you are listing standard pages or news items for example) is to use a paint layout (which can contain conditions).
To do this , you put a keyword of the form %asset_contents_paint_xxxx% where xxxx is the asset id of a paint layout e.g. %asset_contents_paint_1546946% in the default format of the asset listing.
For data source records, however, this does not work. Nothing is displayed. Is this because data source records are "ghost assets" or some nonsense as another poster has claimed?
It is very frustrating trying to get this to work. As some may have guessed, I'm a developer used to writing sql and formatting the results in a scripting language, thus doing in 5 minutes what I've spent days figuring out how do in Matrix.
Any help appreciated.