Connection with filemanager

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

Connection with filemanager

Post by purplerain12 »

Hello,

I am writing a module. In this module there is a option to link a file from the filemanager to a item.

I created a upload box. When i click on the browse button, it opens a screen with the files on my computer.

What i want is to open a screen that's connected to the filemanager, so i can link a file from the filemanager to the item.

Can someone tell me what i have to do to make this possible?

Regards,

Bas
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: Connection with filemanager

Post by duclet »

I don't get it. You want the Browse button in your upload field in your file manager to open up your filemanager again? That doesn't make sense. If you are uploading a file to your server, then of course you need to select a file from your computer.
purplerain12
Forum Members
Forum Members
Posts: 110
Joined: Thu Aug 14, 2008 10:33 am

Re: Connection with filemanager

Post by purplerain12 »

Maybe i didn't explain it ok. I'll trie again.  :)

In my module i have a page called newitem.php. In this page there is a form where you can fill in some text en there is a upload area. But this upload area isn't really a upload area, the only thing this area has to do is to put a textbased link in the database. When someone clicks on the browse button, it should open a screen with al the files in the uploads folder, so the user can select a file and when clicked on ok the link will be shown in the upload area (read: ).

I don't no if this explanation makes it easier, i hope so.
purplerain12
Forum Members
Forum Members
Posts: 110
Joined: Thu Aug 14, 2008 10:33 am

Re: Connection with filemanager

Post by purplerain12 »

For example:

The button Image in the TinyMCE editor is kind a like what i mean.

When you click this button it opens a popup where you can select an image from the image folder. This is what i need, but then with a area and a link to the uploads folder instead of the image folder.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Connection with filemanager

Post by Dr.CSS »

You may want to look into tinys structure/use of it to copy for yours...
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

Re: Connection with filemanager

Post by Silmarillion »

for cmsms 2.0 a plug into the FM-Module is planned... but it's not coming out for some time...
Post Reply

Return to “Developers Discussion”