How do I display the file names from the content folder in a selectfield?

Hi everyone :slight_smile:

I would like to display the file names of my backup files in the panel in a select field. the files are of course in the same folder where the pictures etc are.

Bildschirmfoto 2020-10-02 um 11.30.47

Is there any way to do this? Thank you very much :smiley:

There shouldn’t be any additional txt files in the folder apart from the page content files and the files meta data files. At least that was a problem in the past… In my little test just now they didn’t cause any issues, need to brush up on this.

But I doubt they will pop up as files in the select, guess you have already tested this, otherwise you wouldn’t ask.

You could use another file extension, e.g. .md (.mc and .txt are your options for text file extensions) either for your backup files or for your text files. Then the other extension should be regarded as “file”.

1 Like

Thanks! :slight_smile: i used the .rtf extention for my files and it works greatfully. The backup files can now be seen under files and in the select field. That was what i was looking for :smiley: