Making Files Available for Download With the DNN Text Editor
Posted by Tom on Wednesday, May 09, 2007 to DotNetNuke, DNN Tips and Tricks
Today it’s back to the basics. Every so often I’m being asked how to make files or documents available for download using the text editor in DotNetNuke.
First, let’s get organized. Login and go to Admin | File Manager and create a new folder under Portal Root to give your files and documents a home on the web server. Name the new folder “documents,” “downloads” or any other descriptive label you can think of.

Now that the “downloads” folder has been created, you can upload a document into the folder by clicking the Upload icon at the top of the File Manager. A browse box appears prompting you to locate the document on your local system. The drop-down box below the browse box contains all folders in File Manager. Make sure the “downloads” folder is selected. Then click Save File to upload the document to the web server. This may take a while depending on the size of the document.

Back at the File Manager you may expand the Portal Root by clicking on the plus sign next to it to see the “downloads” folder. Click on the folder and locate your file in the right pane of the File Manager. Here you can copy, move, rename, and delete files.
Now that the document is up on the web server, step into a text/html module to make the file available for download. Create the link that people will click on to download your document by highlighting the link text and clicking the Insert/Edit Link button as shown below.

A Link Properties window pops up. Select Browse Server and an additional Link Gallery window opens. Change the Link Type to File (A File On Your Site), select the “downloads” folder from the File Locations drop-down box and pick your document of choice from the File Name drop-down box as shown below.

Then click “Use selected link” to be returned to the Link Properties window. Just click OK here and click “Update” at the bottom of the text editor and you are done creating the link to download the document.

A few notes. The above walkthrough is based on the FCKeditor, but even if you are using a different editor, the basic steps are the same. Also, to be on the safe side, I recommend creating PDF documents from your Microsoft Office files before making them available for download on your website. Furthermore, if you want to offer multiple files at once, “zip” them into a “package” with a free tool such as 7zip.
Feel free to add to this tutorial in the comments below.
Permalink
9 Comments
RSS feeds
Email updates