This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

BenjaVR
BenjaVR

Hello Is it possible to get a list of all content files and use this list to dynamically build the options of a dropdown property inside a snippet? The snippet is created by a partial. My goal is to let the user drag and drop content files into static pages, or is this considered bad practise? Or is there maybe a much easier way to get this?

Thanks in advance!

BenjaVR
BenjaVR

It ended up being as simple as:

$files = Content::get();

trollkotze
trollkotze

Hooray! Thanks. I had been looking for this for some time.

Last updated

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.