<p>I tried putting together the code, and resolved the issue. Here's the solution for anyone else out there looking to do something similar:</p>

<p>The asset handle is "productionPhotos".
<img src="https://i.sstatic.net/z4ZzD.png" alt="enter image description here"></p>

<p>Within "productionPhotos", there is a field "imageTags" so that I can add multiple people as tagged in the photo. I used a Matrix field type. The block type name is "person" and the Field name is "taggedPerson" with a field type of "Entries".
<img src="https://i.sstatic.net/yyBEG.png" alt="enter image description here"></p>

<p>Here's the code I used:</p>

<pre><code>&lt;div id="slider"&gt;
  {% set photos = craft.assets.section('productionPhotos').relatedTo({
    targetElement: entry,
    field: 'imageTags.taggedPerson'
   }) %}
  &lt;ul class="slides"&gt;
    {% for image in photos %}
    &lt;li&gt;&lt;img src="{{ image.getUrl('sliderImage') }}" alt="{{ image.title }}" /&gt;&lt;/li&gt;
    {% endfor %}    
  &lt;/ul&gt;
&lt;/div&gt;
</code></pre>

CC BY-SA 3.0
2015-04-21T13:04:36.293Z
2015-04-21T13:04:36.293Z
jsilton
<p>Assets can have custom fields just like entries. You can create an entry field for the person section, and add it to the asset source field layout from your asset settings. </p>

<p>You can then use relations to query for the right assets or entries as you see fit!</p>

CC BY-SA 3.0
2015-04-20T03:06:19.033Z
Great! Thanks for posting the solution :)
Aaron Berkowitz
CC BY-SA 3.0
2015-04-18T23:19:32.790Z
2015-04-18T23:19:32.790Z
Aaron Berkowitz
<p>We have hundreds of photos on our theater website from past performances. In order to sustainably manage the relationship between cast members and which photos they were in, we wanted to explore setting up some type of tagging system. Would there be a way to associating a person (Entry type) with a photo (Asset Type) at the asset level? That way, we could query the database for any photos a person is in from their bio page and assemble them into a slider.
<img src="https://i.sstatic.net/CNbmz.jpg" alt="Image Slider via FlexSlider"></p>

CC BY-SA 3.0
2015-04-21T07:04:54.017Z
Can you submit your solution as an answer instead of part of the original question? It's a little easier to understand for other users with similar questions. This is a perfectly acceptable and [encouraged on Stack Exchange](http://meta.stackexchange.com/questions/17463/can-i-answer-my-own-questions-even-if-i-knew-the-answer-before-asking).
Alex Roper
CC BY-SA 3.0
2015-04-21T13:05:07.763Z
Alex, I went ahead and changed it to an answer.
jsilton
<assets><entry><image>
Tagging and Associating Photos with Entry Type
# Tagging and Associating Photos with Entry Type

(Asked by: username_0 on 2015-04-18)

We have hundreds of photos on our theater website from past performances. In order to sustainably manage the relationship between cast members and which photos they were in, we wanted to explore setting up some type of tagging system. Would there be a way to associating a person (Entry type) with a photo (Asset Type) at the asset level? That way, we could query the database for any photos a person is in from their bio page and assemble them into a slider.
![Image Slider via FlexSlider](https://i.sstatic.net/CNbmz.jpg)

**Tags:** assets, entry, image
> **Comments:**
> **username_1**: Can you submit your solution as an answer instead of part of the original question? It's a little easier to understand for other users with similar questions. This is a perfectly acceptable and [encouraged on Stack Exchange](http://meta.stackexchange.com/questions/17463/can-i-answer-my-own-questions-even-if-i-knew-the-answer-before-asking).  
> **username_0**: Alex, I went ahead and changed it to an answer.  

---

## 2 answers

### Answer by username_0 on 2015-04-21. Score: 1 | Accepted answer

I tried putting together the code, and resolved the issue. Here's the solution for anyone else out there looking to do something similar:
The asset handle is "productionPhotos".

Within "productionPhotos", there is a field "imageTags" so that I can add multiple people as tagged in the photo. I used a Matrix field type. The block type name is "person" and the Field name is "taggedPerson" with a field type of "Entries".

Here's the code I used:

  {% set photos = craft.assets.section('productionPhotos').relatedTo({
    targetElement: entry,
    field: 'imageTags.taggedPerson'
   }) %}
  
    {% for image in photos %}
    
    {% endfor %}


---

### Answer by username_2 on 2015-04-18. Score: 2

Assets can have custom fields just like entries. You can create an entry field for the person section, and add it to the asset source field layout from your asset settings.

You can then use relations to query for the right assets or entries as you see fit!

> **Comments:**
> **username_2**: Great! Thanks for posting the solution :)  

---

