Access asset value #6623
Answered
by
jasonvarga
simplyniceweb
asked this question in
Q&A
-
Hi, i'm new with Statamic and antlers. I have tried to dump the data and i see my handler: homeimage_image How can i access the value: lob_cv_2.png? |
Beta Was this translation helpful? Give feedback.
Answered by
jasonvarga
Sep 1, 2022
Replies: 2 comments 7 replies
-
You can use the |
Beta Was this translation helpful? Give feedback.
4 replies
-
Since asset fieldtypes get augmented into asset objects, you will have a bunch of different variables available in the loops. The paths - which are what you're seeing in the dump - can be retrieved using the {{ homeimage_image }}
{{ path }}
{{ /homeimage_image }} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
simplyniceweb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since asset fieldtypes get augmented into asset objects, you will have a bunch of different variables available in the loops.
The paths - which are what you're seeing in the dump - can be retrieved using the
path
variable.See https://statamic.dev/fieldtypes/assets#templating