You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to upload all attachments (files) in the folder where md file resides.
For example with following structure:
Blog
PostName
PostName.md
images
image1.jpg
illustration2.png
...
Currently it will only upload .md file and whatever is linked inside file. My theme uses a lot of images in frontmatter.
I would like anything in images folder to be uploaded as well.
I know that I could use front matter key to specify which attachments to upload, but my frontmatter is hierarchical and it looks like plugin can't handle it.
Example of frontmatter:
I have considered to change handling of frontmatter in plugin. In the logic, that checks forntmatter for key you assume forntmatter has one dimension, hence usage of const fieldValue = dataviewMetadata[field];
Maybe the frontmatter object could be flattened to one dimension, something like this:
Given my example frontmatter
Issue validation
Is your feature related to a problem ?
No response
What solution do you want to see ?
I would like to be able to upload all attachments (files) in the folder where md file resides.
For example with following structure:
Currently it will only upload .md file and whatever is linked inside file. My theme uses a lot of images in frontmatter.
I would like anything in
images
folder to be uploaded as well.I know that I could use front matter key to specify which attachments to upload, but my frontmatter is hierarchical and it looks like plugin can't handle it.
Example of frontmatter:
Describe the alternative you've considered
I have considered to change handling of frontmatter in plugin. In the logic, that checks forntmatter for key you assume forntmatter has one dimension, hence usage of
const fieldValue = dataviewMetadata[field];
Maybe the frontmatter object could be flattened to one dimension, something like this:
Given my example frontmatter
Resulting object could be
Then we could also match key by RegEx. Example:
/galleryImages\d+\.\[\d+\]\.image/
OS
Windows
Anything else?
No response
Plugin version
7.5.2
Obsidian version & debug log
The text was updated successfully, but these errors were encountered: