Support for images in fields
See original GitHub issueI am not sure if this is possible, but maybe it can be done. I would like to be able to link to a remote or local image in a yaml field, and have dataview render that image in preview mode.
So something like:
---
image: 
# OR
image: [](URLtoimage.com/image.jpg)
# OR
image: URLtoimage.com/image.jpg
---
Where you could then have a table calling for the image field
table image from ""
I know yaml won’t render the image in preview mode, but perhaps dataview could have an image type which passes the image path to <img src="{{path}}">
or something.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:13
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Custom fields support for file and image fields - ProcessWire
Custom fields support for file and image fields: misinformation?
Read more >Support for Image and Date fields in Acroforms - Adobe Support
buttonImportIcon() now supports Image file types – jpg, png, gif, and tiff – in Reader. You can import these image files in Reader...
Read more >Use Images in 'Formula' Fields - Salesforce Help
Use Images in 'Formula' Fields ; Create a public folder to hold your image files. · Click Create New Folder. Enter the folder...
Read more >“Pick image from: custom field” – how does this work?
Support » Plugin: WordPress Popular Posts » “Pick image from: custom field” – how does this work? “Pick image from: custom field” – ......
Read more >How to Add Image Choices to WPForms
In addition to any other customization options available for the field you're using, two options are added when the Use image choices option...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Interesting! It might make my custom JS code obsolete.
Below I share my handmade image-from-frontmatter rendering approach for some “how do they overcome of such feature” context 😄
Currently, in YAML front matter I have e.g.:
then in dataviewjs I have:
and then, last but not least, shared helper function:
Another use case I have is with multiple thumbnails (I render them all inside a single table cell), like:
My goal was to have a book library with LOCAL Cover images using YAML and DataView.
Just put your normal png link in to YAML and put " on each side.
Then simply table for Cover like with any other text.