Answers.Body: <p>You could use the <a href="http://buildwithcraft.com/docs/templating/craft.assets#folderId" rel="nofollow"><code>folderId</code>-parameter</a> in <a href="http://buildwithcraft.com/docs/templating/craft.assets" rel="nofollow"><code>craft.assets</code></a>:</p>
  
  <pre class="lang-twig prettyprint-override"><code>{% for image in craft.assets.folderId(1) %}
      &lt;li&gt;&lt;img src="{{ image.getUrl('thumb') }}" alt="{{ image.title }}"&gt;&lt;/li&gt;
  {% endfor %}
  </code></pre>
  
  <p>You can get the <code>folderId</code> by inspecting the folder-name in the CP.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-20T19:06:57.090Z
Answers.Text: Is there also a possibility to this recursively? Getting all files from the subfolder and its subfolders.
Answers.UserDisplayName: Lars Bilke
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-18T11:00:01.633Z
Answers.LastActivityDate: 2014-08-18T11:00:01.633Z
Answers.UserDisplayName: Victor
Body: <p>In the case that I have an asset folder structure like this:</p>
  
  <pre><code>/images
     /group-a
     /group-b
     /group-c
  </code></pre>
  
  <p>How would I loop through all of the images in <code>/group-b</code> without having to assign them to entries.</p>
  
Tags: <assets><forloop><image>
Title: How would I list assets from a specific subfolder?
ThreadText: # How would I list assets from a specific subfolder?
  
  (Asked by: username_0 on 2014-08-18)
  
  In the case that I have an asset folder structure like this:
  
  ```
  /images
     /group-a
     /group-b
     /group-c
  
  ```
  
  How would I loop through all of the images in `/group-b` without having to assign them to entries.
  
  **Tags:** assets, forloop, image
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-08-18. Score: 4 | Accepted answer
  
  You could use the [`folderId`-parameter](http://buildwithcraft.com/docs/templating/craft.assets#folderId) in [`craft.assets`](http://buildwithcraft.com/docs/templating/craft.assets):
  
  ```twig
  {% for image in craft.assets.folderId(1) %}
      <li><img src="{{ image.getUrl('thumb') }}" alt="{{ image.title }}"></li>
  {% endfor %}
  
  ```
  
  You can get the `folderId` by inspecting the folder-name in the CP.
  
  > **Comments:**
  > **username_2**: Is there also a possibility to this recursively? Getting all files from the subfolder and its subfolders.  
  
  ---
  
  