MODX3 Dropdown-TV with values populated by a snippet?

Hello MODX-fans,

After my first successful MODX3-Migration-Test, I stumbled upon some issues -
one of them being, that a dropdown-tv is missing its values.

I know, I know, what you will see in in the following screenshot might shock someone, especially Jason, but it worked in 2.x and made everyone happy:

I populated the values before with this call:
@EVAL return $modx->runSnippet('GetMediaDirOptions', array('delimited' => true));

Isn’t it still possible to populate a dropdown-tv with a snippet? If so, how?

The @EVAL binding doesn’t work anymore in MODX 3.

You can instead use a @CHUNK binding and then put a snippet tag in the chunk, or there is also a new @SNIPPET binding.

Ah nice, I hoped/expected that :heavy_heart_exclamation:
But then we should definitely update the info-text and examples there.

I’ll try it later/soon and report back :+1:t4:

If your list contains a lot of values, it is also possible to write a custom list processor for SuperBoxSelect.

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.