Formatting issues with output of list query #1901
Unanswered
davidmickelsen
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have various movie notes for different movies, and I want to use the
date-watched
field to display a list of the dates on which I've watched that movie, each date displaying on its own line in the body of the note. Since inline Dataview fields only allow comma-separated lists, I've added thedate-watched
field to my frontmatter, and put a Dataview list query in the body of the note to display the dates as a list. So the frontmatter content would look like this:and the query looks like this:
which gives me the following output:
This is what I'm looking for, except for two formatting issues:
1. An extra bullet to the left of the bulleted list of dates (and a vertical line in read view)
I imagine this is not a bug, but rather the expected behavior, as it considers the outputted dates as one list item; but for this use case, that leftmost bullet is superfluous. Is there any way to avoid this?
2. I'd like to adjust the date format
I input the dates as
YYYY-MM-DD HH:mm
because I want the hour and minute information to be available for things like listing my most recently viewed movies and shows; but I don't want to see it in this query. I'd prefer the output to look like:I've tried using the
dateformat
function, but I haven't figured out how to get it to work in this case. Forgive me if I'm missing something obvious here.Thanks very much for any insight the community can provide, and thanks to the developers for the fantastic plugin.
Beta Was this translation helpful? Give feedback.
All reactions