Dynamic URL Link Hotspot Continues
Posted on 2000-04-20
This question is an expanded version for the "Dynamic URL Link Hotspot" question from Wed. Jan 5, 2000. id # 10255094.
What I'm after is similar in that I want to produce a picture, icon, to link to a file attachment for web users. My approach is as follows:
1. After creating a document library, based on the r5 web doc library template, I would create a simple form that would allow for fields category, document title, and file attachment, as well as a radio button indicating file type. (ie. Abobe, MS Word, etc.) Then I want to create a view that will display an icon, based on the file type selection. (I also thought about eliminating file type and parsing the attachment for its file extentsion, ie. .pdf would display an adobe icon, .doc a word icon.) This customized view would also have a short description, title of the document.
2. When a user clicks on this generated icon in the view from the web or otherwise, it will launch the file attachment.
This way, I can create a document library that users could add file attachments to and by using the view these attachments would automatically be published on the web site. Without the need for an admistrator to add document links every time a user has a MS Word or Excel document to link to the Web page.
Now you know my idea.
My question is how do I launch the file attachment from the icon in the view?
If you have any tips on how to accomplish any other aspects of this problem or an easier approach to accomplishing the same thing please tell me.
As a bonus how would I accomplish generating the view icons based on file attachment extentsion.