# Use @SNIPPET Binding in Dropdown

**URL:** <https://forum.modmore.com/t/use-snippet-binding-in-dropdown/2657>\
**Category:** ContentBlocks\
**Created:** [September 5, 2025, 8:40am UTC](https://forum.modmore.com/t/use-snippet-binding-in-dropdown/2657 "2025-09-05T08:40:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivmedia](https://forum.modmore.com/letter_avatar_proxy/v4/letter/i/9f8e36/32.png) [@ivmedia](https://forum.modmore.com/u/ivmedia)\
**Post date:** [September 5, 2025, 8:40am UTC](https://forum.modmore.com/t/use-snippet-binding-in-dropdown/2657/1 "2025-09-05T08:40:32Z")

</div>

I want to add a dropdown with all resources below a specific parend Sounds like perfect for a getResource binding. But I’m not how. This is the code I added into the options input field:

```auto
@SNIPPET getResources {"parents":"15","tpl":"@CODE: [[+pagetitle]]==[[+id]]"}

```

But it doesn’t work. How to do this?

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [November 18, 2025, 5:39pm UTC](https://forum.modmore.com/t/use-snippet-binding-in-dropdown/2657/2 "2025-11-18T17:39:47Z")

</div>

The `@SNIPPET` binding in ContentBlocks dropdown values don’t support properties like that currently.

You would need to do something like `@SNIPPET getResourcesIn15` and create a snippet named `getResourcesIn15` that runs `return $modx->runSnippet('getResources', ['parents' => 15, 'tpl' => '@CODE: [[+pagetitle]]==[[+id]]']);`

---

<div class="post-metadata">

**Author:** ![smg6511](https://forum.modmore.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@smg6511](https://forum.modmore.com/u/smg6511)\
**Post date:** [December 9, 2025, 5:02pm UTC](https://forum.modmore.com/t/use-snippet-binding-in-dropdown/2657/3 "2025-12-09T17:02:25Z")

</div>

It’d be great to have support for the json params; any plans for that being added?

Also useful would be having an @CHUNK binding, which could more easily implemented (maybe ?). I sometimes use a chunk just to make list-specific calls that pass params to a general-purpose list getter snippet I created.

---

<div class="post-metadata">

**Author:** ![ivmedia](https://forum.modmore.com/letter_avatar_proxy/v4/letter/i/9f8e36/32.png) [@ivmedia](https://forum.modmore.com/u/ivmedia)\
**Post date:** [February 7, 2026, 6:06pm UTC](https://forum.modmore.com/t/use-snippet-binding-in-dropdown/2657/4 "2026-02-07T18:06:47Z")

</div>

This works with just some small changes:

```auto
return $modx->runSnippet('getResources', [
    'parents' => 13,
    'limit' => 0,
    'sortby' => 'pagetitle',
    'tpl' => '@INLINE [[+id]]==[[+pagetitle]]'
]);

```
