I have a need for something that I have not yet
seen in any of the available extensions.
I am using a component that builds a list of
uploaded files sorted by category and displays them to the user to select and
download as desired. However, I would like to take it one step further in that I
would like to assign that display as an archive on the menu and have another
menu item that automatically points to the last uploaded file.
The scenario is that we save our newsletters to the
server in an archive for anyone to download in the future, but we have several
hundred in the archive. In order to make it as simple as possible, we would like
to have the last newsletter uploaded connected to a menu item. I can't allow the
person creating the newsletter access to the backend because they would
just mess things up... but they can upload the files easily enough.
Is it possible to cause a menu click to download a
file without hard coding it as a URL? I can write whatever code is necessary,
but I am not sure of the technical aspects of pointing a menu item to a script
that downloads the latest file.
The way I envision it is the user clicks the menu,
it calls the function to read the database list of files uploaded, gets the ID
for the latest one uploaded, grabs the file and serves it up to the user.
I hope this is making sense.
Keith Blackie