Drop down list of downloadable files

Permalink
I am trying to get a drop down list of files for users to select so that they can download said files. It is a monthly newsletter that will go back several months that makes up the list. I have seen how to make a form drop down list, but this seems a bit complex for my client to go through adding and removing files. Is there a simple method to do this, or an add-on I have missed capable of this?

Thanks
Jared

 
JohntheFish replied on at Permalink Reply
JohntheFish
There are several file list & download blocks, some you add files 1 by 1. Some you just name a fileset and the block lists all in the set.
bpbuild replied on at Permalink Reply
Do you have the name for any
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
An easy starting point is
http://www.concrete5.org/marketplace/addons/list-files-from-set/...

You don't say whether you have php and jQuery programming experience. If you do, then creating a new view template for the block and wrapping it in an expander/accordion won't be particularly difficult.

Your client then just adds files to the fileset.

Not relevant to you, but may help as programming examples for the block:
http://www.concrete5.org/marketplace/addons/image-list-templates/...

If you search the marketplace for 'download' there are a number of other addons that could form the basis for what you want.
bpbuild replied on at Permalink Reply
Most of my knowledge is either out-of-date or on the job learning through searches and forums. I have managed to make a template that produces a <select> style list instead, with a submit input, however I am not sure how to tie the submit to actually picking up the file. Any suggestions on how to work this?
JohntheFish replied on at Permalink Reply
JohntheFish
Assuming you are continuing from the above with list files from set as your base, you could create a hidden element with the 'download file' link within it for each file. Then reveal the element that matches the 'select' using some jQuery.

If you make the 'id' attribute of each hidden element tie in with the values of the select options that will simplify your solution. Along the lines of (pseudocode to express the algorithm, not real jQuery code)

select on_change
  hide all download elements
  show download element matching value of select