Hi,
I created a small Umbraco 15 website where I have a content picker for media folders (screenshot attached).
When calling the property from a template e.g. "content.Folder" (from the modelsbuilder generated model), the folder is properly returned as IPublishedContent.
Now I want to get the images inside this folder, so I called "content.Folder.Children()", but this seems to return null, even though there are 3 images inside this folder in Umbraco Media. Am I doing something wrong (is there another way to get the images inside the picked folder), or is this a bug in Umbraco 15?
The way of getting the children as described above, seems to work in Umbraco 13.
https://cdn.discordapp.com/attachments/1349707908987883520/1349707909214502922/image.png?ex=67d414f1&is=67d2c371&hm=dc031e694166dcd384149ce8230e6aceea566a281c35ad4186f8a73dbca30491&
s
Sebastiaan
03/13/2025, 11:46 AM
Hi @Koen, just to let you know that we'll soon stop the ability to create new questions on Discord as we're moving the #1125392773038755890 channel over to our new forum.
You can read more about this initiative here: https://discord.com/channels/869656431308189746/869656431308189749/1344602175019421736
I'd recommend you log in to the forum (https://forum.umbraco.com) with your GitHub account and post this question there. Thanks, and see you there!
k
Koen
03/13/2025, 12:09 PM
@Sebastiaan thanks! Just moved the question to the forums and closed it here. 🙂