Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 24th, 2007, 09:38 AM
Authorized User
 
Join Date: Jan 2007
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default Downloads/Resources Section for TBH Template

I am using the Articles management functionality of TBH and am extending this further to include a resources/downloads section.

My client's website stores technical documentation that customers can download. Currently I have migrated existing product info as articles. Whilst I could then cross link between articles (setting the visibility of the download page to false) I wanted something a bit more dynamic.

It is almost complete. It ties in very well with the existing structure and makes use of the Articles base class (in fact the resources classes are very similar to those of comments).

Anyway, my plan is to release the finished upgrade for all to see. The reason I am posting now is for some advice regarding the admin section for the downloads. Whilst I could use the existing fileupload control so that a user can upload a file and copy the path into the resource record, I want something more functional and easier to use.

In my client's case, I am setting up an FTP server server in order for him to batch upload files using an FTP client. I therefore need a file browser control that can be used to select existing files in a specific directory. The creators of FCKeditor do another control called CKfinder but this is a little too advanced for this purpose as all I need to do is display a list of files and click on a file to return it's path.

I could create a control myself but wondered if anyone else knew of some existing (free) controls that I could use. Ideally I would like to use the browser from FCKeditor but I am not sure how to call this from my own custom page (not great at js).

Thanks,

Ben

 
Old October 24th, 2007, 07:11 PM
Friend of Wrox
 
Join Date: Mar 2006
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not js expert either...

Version 1 of TBH (thePhille) had a file manager... but TBH don't (as you know)

Try to google something like "asp.net 2 filemanager tutorial sample opensource"

Or use fckeditor forum to see it if someone had the same doubt as you, or maybe some js could help on this forum!

I posted some doubt on fck forum once and get a good reply on the same day

 
Old October 25th, 2007, 12:21 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It sounds like you can just iterate over the files and populate a repeater with a link for each file?

Eric

 
Old October 25th, 2007, 05:28 PM
Authorized User
 
Join Date: Jan 2007
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I decided to modify the design. Whilst the ability to upload the files via ftp is quite easy for the client, they still then need to attach the file to a resource record (twice the work)
Originally I was planning to keep the resource more as a pointer to a file rather than any direct management over it. However this did mean that when a resource record is removed, the file remains. This could leave many files that the users are not even aware of (unless i implement a more advanced file manager).

I have decided instead to add an upload control for the user when he creates the resource. The file uploader will upload the file and automatically populate the FileUrl field (rather than copying the path like the original TBH file upload control). When the user deletes a resource record it will also delete the related File.

As far as management of the resources, the user will be able to view all resources at once and edit them accordingly. However, I have decided to only allow adding of resources through the edit mode of an article. Otherwise, I would have to provide the user a means of selecting a article through a dropdownlist or listbox (something that may be quite tedious once the number of articles build up).

Any suggestions are welcome. I have tested all the methods of the resource class and they work :) I am about 50% through the "View all resources" page so should have entire section finished at some point at the weekend.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Downloads Section sully7 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 September 19th, 2008 12:47 AM
Server type for TBH template - Hosting Question sootie77 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 March 6th, 2007 01:38 PM
Resources mike72 ASP.NET 2.0 Professional 0 January 3rd, 2006 08:25 AM
Downloads alexisb BOOK: Expert One-on-One Access Application Development 7 January 1st, 2005 10:24 PM
Resources vijay VB.NET 2002/2003 Basics 2 November 3rd, 2003 11:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.