Answers.Body: <p>You can always check the <code>craft_assetfolders</code> table in the database, find the folder name you're looking for and grab its <code>id</code>.</p>
  
  <p>And it's probably just a typo in your original code, you're setting the folder ID to a variable named <code>folder_id</code>, but you're passing <code>id</code> into <code>.folderId(id)</code>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-11T00:57:12.773Z
Answers.Text: Yeah, typo, sorry! Was just typing out an example and not really focused on it. Just looked through the `craft_assetfolders` table and found them. Thanks!
Answers.UserDisplayName: taylor
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-11T00:45:22.660Z
Answers.LastActivityDate: 2015-12-11T00:45:22.660Z
Answers.UserDisplayName: Brad Bell
Body: <p>I need to list out the image options from a specific assets folder for users to select from. Previously, I accomplished that like this:</p>
  
  <pre><code>{% set folder_id = 5 %}
  
  {% for image in craft.assets.kind('image').folderId(folder_id).order('filename') %}
  
      {# do stuff, like print image.filename #}
  
  {% endfor %}
  </code></pre>
  
  <p>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 <code>folderId()</code> filter for <code>craft.assets</code>.</p>
  
  <p>Does anyone know?</p>
  
  <p>Thanks,</p>
  
Tags: <templating><assets><filter><files>
Title: Getting Asset FolderId
ThreadText: # Getting Asset FolderId
  
  (Asked by: username_0 on 2015-12-10)
  
  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,
  
  **Tags:** templating, assets, filter, files
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-12-11. Score: 3 | Accepted answer
  
  You can always check the `craft_assetfolders` table in the database, find the folder name you're looking for and grab its `id`.
  
  And it's probably just a typo in your original code, you're setting the folder ID to a variable named `folder_id`, but you're passing `id` into `.folderId(id)`.
  
  > **Comments:**
  > **username_0**: Yeah, typo, sorry! Was just typing out an example and not really focused on it. Just looked through the `craft_assetfolders` table and found them. Thanks!  
  
  ---
  
  