Directorylist

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
purplerain12
Forum Members
Forum Members
Posts: 110
Joined: Thu Aug 14, 2008 10:33 am

Directorylist

Post 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
irish
Forum Members
Forum Members
Posts: 101
Joined: Tue Jun 03, 2008 2:31 pm

Re: Directorylist

Post by irish »

Could you not somehow use the fileview.php file in the Filemanager module?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Directorylist

Post 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
Post Reply

Return to “Developers Discussion”