This plugin provides a field type which can be used to get a dropdown of folder names. This allows the easy output of an asset folders contents.
- Download & unzip the file and place the assetlist directory into your craft/plugins directory
- -OR- do a git clone https://github.com/georgeevans1995/craft-assetlist.git directly into your craft/plugins folder. You can then update it with git pull
- Install plugin in the Craft Control Panel under Settings > Plugins
assetlist will output a folder id. From this id loop through and get the folder contents.
{% for asset in craft.assets.folderId(entry.assetlistFieldHandle) %}
<li><img src="{{ asset.getUrl() }}" alt="{{ asset.title }}"/></li>
{% endfor %}