Help with passing variables to partials #8768
Unanswered
kylef-fotf
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am trying to pass an asset url to a component which will make a glide call.
This component works in other templates where the entry has an image asset that is passed into the partial.
However, in one template, the image background is set with a string, and I cannot get it to pass to work with the partial.
Below is the section of the template trying to set the image_url variable to pass it to the partial.
Echoing image_url on it's own will correctly output the string, but passing image_url into :image just gives an empty string.
The background-image partial looks like this:
This outputs like:
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions