<p>You can do this with <a href="https://github.com/lewisjenkins/craft-lj-dynamicfields/" rel="nofollow">LJ DynamicFields</a>. In the plugin docs is an example of how to create a dropdown that is a list of all sections.</p>

CC BY-SA 3.0
2014-12-28T19:20:59.770Z
2014-12-28T19:20:59.770Z
Marion Newlevant
<p>I have a channel for products but in some cases I would like to associate a product with a structure containing documentation and release note pages:</p>

<pre><code>http://mysite.com/product/my-product/docs/getting-started
                          ^--------^      ^-------------^
                              |                  |
                           channel             topic (from 'myProductStructure')
</code></pre>

<p>Is there an existing field type (or plugin) which would allow selection of the associated structure type:</p>

<pre><code>Title: My Product  [text]
Doc Source: My Product Structure  [drop-down]
</code></pre>

<p>Such that I could use that in templates?</p>

<pre><code>{% for entry in craft.entries.section( product.docSource ).slug( craft.request.lastSegment ) %}
    ...
{% endfor %}
</code></pre>

<field><fieldtypes>
Field type for selecting a section (channel / structure / single)?
# Field type for selecting a section (channel / structure / single)?

(Asked by: username_0 on 2014-12-28)

I have a channel for products but in some cases I would like to associate a product with a structure containing documentation and release note pages:
http://mysite.com/product/my-product/docs/getting-started
                          ^--------^      ^-------------^
                              |                  |
                           channel             topic (from 'myProductStructure')

Is there an existing field type (or plugin) which would allow selection of the associated structure type:
Title: My Product  [text]
Doc Source: My Product Structure  [drop-down]

Such that I could use that in templates?
{% for entry in craft.entries.section( product.docSource ).slug( craft.request.lastSegment ) %}
    ...
{% endfor %}

**Tags:** field, fieldtypes

---

## 1 answers

### Answer by username_1 on 2014-12-28. Score: 4 | Accepted answer

You can do this with [LJ DynamicFields](https://github.com/lewisjenkins/craft-lj-dynamicfields/). In the plugin docs is an example of how to create a dropdown that is a list of all sections.


---

