How to use sources in the forms.elementSelectField in Craft 4 #12934
-
We just updated a website to Craft 4. We have a custom field in de backend where we use the elementSelectField for assets with limited sources:
This is not working anymore. Can someone explain how this works in Craft 4? 🙏 |
Beta Was this translation helpful? Give feedback.
Answered by
brandonkelly
Mar 20, 2023
Replies: 1 comment 1 reply
-
In Craft 4, volume sources should be defined as |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
brandonkelly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Craft 4, volume sources should be defined as
volume:<volume-uid>
rather thanfolder:<root-folder-uid>
.