Replies: 1 comment 2 replies
-
If by inline DQL you mean |
Beta Was this translation helpful? Give feedback.
2 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.
-
Goal: Create a button to update the frontmatter of the page the button is on, then propagate that new frontmatter through the page via inline DQL.
Achieved: A button that updates the frontmatter of the page the button is on.
Issue: Inline DQL does not grab the new frontmatter values until the page is refreshed via clicking back and forth to a different page or reloading obsidian. If in LP, "touching" the inline by clicking it then clicking off of it also is a valid refresh. Ideally, however, this would just happen automatically without having to interact with the page further.
Posited solutions: On Discord, dv.index.touch(), dv.index.reinitialize(), and dv.index.reload() all have been suggested as additions to the button script to no avail. It's possible my implementation of them was incorrect though.
Below is my latest attempt, which still fails to update the inline.
Suggestions are appreciated!
Beta Was this translation helpful? Give feedback.
All reactions