I need to list out the image options from a specific assets folder for users to select from. Previously, I accomplished that like this:
{% set folder_id = 5 %}
{% for image in craft.assets.kind('image').folderId(folder_id).order('filename') %}
{# do stuff, like print image.filename #}
{% endfor %}
And to get the folder ID pre-2.5, I could inspect the folders menu when viewing assets in CP. Now, that appears to be gone in Craft 2.5+ and struggling to find the ID. I'm assuming there must be a way to view the folderId as Craft has a folderId()
filter for craft.assets
.
Does anyone know?
Thanks,