Answers.Body: <p>In your main image index template, you can iterated through all of the assets and generate URLs yourself like this:</p>
  
  <pre><code>{% for asset in assets %}
      &lt;a href="/photos/photo-detail/{{ asset.slug }}"&gt;{{ asset.title }}&lt;/a&gt;
  {% endfor %}
  </code></pre>
  
  <p>Then set up a custom route for <code>/photos/photo-detail/</code>(slug) and point it at the <code>photo-detail.twig</code> template. In that template, you can get the slug for the asset via <code>craft.request.getSegment(3)</code> and then look up the asset via the slug.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-30T13:13:32.460Z
Answers.Text: This has worked perfectly, I see now how you can use routes and Twig together to get alot done. Very powerful stuff. Thanks!!
Answers.UserDisplayName: dannyryuk
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-29T23:23:44.093Z
Answers.LastActivityDate: 2016-12-29T23:23:44.093Z
Answers.UserDisplayName: andrew.welch
Body: <p>Building a photography website for a client, need a way to bulk upload images, much like using the assets field. I want these to be grouped into different sets by entry or category. So that I can apply whatever fields I need to the set then loop through these images based on set in the Front-End.</p>
  
  <p>The method I have tried is using entries and having an assets field to upload the images. The problem I am having is I also need to have each image generate it's own seperate URL, meaning a template page for the set of images and then another template for each image in that set. </p>
  
  <p>Is there a way to accomplish this using Craft's core features?</p>
  
Tags: <entries><assets><categories><url><image>
Title: Bulk upload images, generating a seperate page for each image
ThreadText: # Bulk upload images, generating a seperate page for each image
  
  (Asked by: username_0 on 2016-12-29)
  
  Building a photography website for a client, need a way to bulk upload images, much like using the assets field. I want these to be grouped into different sets by entry or category. So that I can apply whatever fields I need to the set then loop through these images based on set in the Front-End.
  
  The method I have tried is using entries and having an assets field to upload the images. The problem I am having is I also need to have each image generate it's own seperate URL, meaning a template page for the set of images and then another template for each image in that set.
  
  Is there a way to accomplish this using Craft's core features?
  
  **Tags:** entries, assets, categories, url, image
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-12-29. Score: 2 | Accepted answer
  
  In your main image index template, you can iterated through all of the assets and generate URLs yourself like this:
  
  ```
  {% for asset in assets %}
      <a href="/photos/photo-detail/{{ asset.slug }}">{{ asset.title }}</a>
  {% endfor %}
  
  ```
  
  Then set up a custom route for `/photos/photo-detail/`(slug) and point it at the `photo-detail.twig` template. In that template, you can get the slug for the asset via `craft.request.getSegment(3)` and then look up the asset via the slug.
  
  > **Comments:**
  > **username_0**: This has worked perfectly, I see now how you can use routes and Twig together to get alot done. Very powerful stuff. Thanks!!  
  
  ---
  
  