Page 1 of 1

Directorylist

Posted: Mon Jan 12, 2009 3:46 pm
by purplerain12
Hello,

I am writing a module. With this module you can write items and show them at the frontend.

What i want to do is to make an option that allows the user to link a document (.pdf or .doc) to the item. So i made een input field with a button next to it that says: browse. When this button is clicked i want to show a new page with all the files in the directory uploads of CMS MS. And when the user clicks on a file, the path to this directory will be the value of the input field.

The list i want to create is like the list of the FileManager. I tried to make that page work for my module but it didnt work.

Can someone help me?

Bas

Re: Directorylist

Posted: Tue Jan 13, 2009 10:18 am
by irish
Could you not somehow use the fileview.php file in the Filemanager module?

Re: Directorylist

Posted: Tue Jan 13, 2009 10:25 am
by RonnyK
Isnt this something similar as using News with the action=fesubmit parameter, and a FieldDefinition for the upload of a document....

You could call News for frontend-editing and have additional field, of type ''File", to link to a file, which is then uploaded....

Ronny