Instead of using a custom TOML/YAML/etc-based config language, use DataviewApi.query to parse a dataview-format query, then build the gallery from the resulting data. This way users have access to the full dataview query & expression language--including sorting, grouping, etc.
Downside: Can't easily add my own gallery type, so I'll probably have to use the built-in table, list, and task types, and figure out how to translate each of them into a useful gallery.
Will still need a way to specify block-specific style options, though, without having to add custom CSS snippets.
Instead of using a custom TOML/YAML/etc-based config language, use
DataviewApi.query
to parse a dataview-format query, then build the gallery from the resulting data. This way users have access to the full dataview query & expression language--including sorting, grouping, etc.Downside: Can't easily add my own
gallery
type, so I'll probably have to use the built-intable
,list
, andtask
types, and figure out how to translate each of them into a useful gallery.Will still need a way to specify block-specific style options, though, without having to add custom CSS snippets.