I have added an image field in the Views and I would like to output just the url image path instead of the whole image tag. I wonder how to do this. In Drupal there's a module called "Image URL Formatter", but it seems not yet ported to backdrop yet. Is there a simpler way of doing so just with Views without additional module ? I would like to form my own image tag.
Accepted answer
Most helpful answers
Here is @olafgrabienski's answer from this comment in the issue queue:
- Add a relationship "File Usage: File".
- Add a field "File: Path", and enable the option "Display download path instead of file storage URI".
Comments
I guess it's possible instead of Image field to use File field.
File field has a Display Format "URL to File".
Thanks for the suggestion @amilenkov. But I think I still prefer to use the image field instead of File field.
Or run the D7 module through https://github.com/backdrop-contrib/coder_upgrade and see if it works. Probably will.
Thanks @docwilmot ! I have converted though there's an error message prompted but it works well so far. I wish this Image URL Formatter module can be ported properly by the community and made available to others soon. Anyway, thanks !
Here is @olafgrabienski's answer from this comment in the issue queue:
- Add a relationship "File Usage: File".
- Add a field "File: Path", and enable the option "Display download path instead of file storage URI".
A quick update. Image URL Formatter already ported to Backdrop ! Thanks @Graham-72 !
it's also possible , not installing anything more , just hiding the image field in views and using the - global text field selecting the right token for the image..
A quick update. Image URL Formatter already ported to Backdrop ! Thanks @Graham-72 !