Antlers and query builders #6793
Unanswered
robdekort
asked this question in
Troubleshooting
Replies: 1 comment 7 replies
-
Your second code block is way this is meant to work. I've never once thought of using
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I ran into an issue that had me very much confused today. I'm looping over a bunch of images coming from the asset fieldtype. The following code returns all items in the images array which is not at all what I expected.
However this code does the expected: it only returns the first item in the array.
And then this doesn't work.
Via @jacksleight I learned on Discord that there's such a thing as getting a query builder returned. He referred me here. However this is an
asset
fieldtype and not anentries
and I didn't find a mention that that returns a query builder as well.This stuff left me a bit confused and I have a few concerns I wanted to drop here as food for thought.
I'm curious what others think and if there's something here that could be improved or clarified.
Beta Was this translation helpful? Give feedback.
All reactions