<p>Have you tried using <code>{owner.owner.slug}</code>? If you've got Matrix > Super Table > Asset, and you're trying to get an attribute on the Entry/Element, you'll need to go two level out from the Super Table field.</p>

<pre><code>Entry
  Matrix
    Super Table
      Asset Field
</code></pre>

<p>The owner of the Super Table field is the Matrix field. The owner of the Matrix field is the Entry.</p>

CC BY-SA 4.0
2019-07-15T17:42:29.580Z
Thank you! It also works if you have a Matrix field within a Super Table field. This should be on the Craft CMS Documentation page, currently they only show: {owner.id} and they dont explain it as well as you just did. Thanks!
mateostabio
CC BY-SA 3.0
2017-08-17T05:20:05.643Z
2017-08-17T05:20:05.643Z
crawf
<p>I'm trying to set dynamic upload locations for my asset fields that are in a Super Table field within a Matrix field. So it's Matrix > Super Table > Asset field. I'm getting the following error when I save an entry, though. <code>Could not resolve the subpath “{owner.section.handle}/{owner.slug}”.</code>
Omitting the <code>owner</code> part doesn't work either. </p>

<p>Any ideas? Thanks!</p>

<assets><matrix><plugin-supertable>
Dynamic upload location for Super Table within a Matrix field?
# Dynamic upload location for Super Table within a Matrix field?

(Asked by: username_0 on 2017-08-15)

I'm trying to set dynamic upload locations for my asset fields that are in a Super Table field within a Matrix field. So it's Matrix > Super Table > Asset field. I'm getting the following error when I save an entry, though. `Could not resolve the subpath “{owner.section.handle}/{owner.slug}”.`
Omitting the `owner` part doesn't work either.

Any ideas? Thanks!

**Tags:** assets, matrix, plugin-supertable

---

## 1 answers

### Answer by username_1 on 2017-08-17. Score: 5

Have you tried using {owner.owner.slug}? If you've got Matrix > Super Table > Asset, and you're trying to get an attribute on the Entry/Element, you'll need to go two level out from the Super Table field.
Entry
  Matrix
    Super Table
      Asset Field

The owner of the Super Table field is the Matrix field. The owner of the Matrix field is the Entry.

> **Comments:**
> **username_2**: Thank you! It also works if you have a Matrix field within a Super Table field. This should be on the Craft CMS Documentation page, currently they only show: {owner.id} and they dont explain it as well as you just did. Thanks!  

---

