File Upload and Tablerizer

Permalink 1 user found helpful
Hi All!

I have got my site mostly done. Now all I need to do is hand it over to a complete HTML novice. Problem is, the site uploads mp3 files weekly. Right now I am displaying them in a table, using the HTML block. (Is there a better way to do this?)

I am trying to figure out if there is a way for them to upload a file, and then type in the date and title, click a button and the file gets added to the table along with the date and title they entered. I am using the <audio> tag to display the audio.

Can anyone give me some ideas? I have been looking for more than a day. Any help you can provide, I appreciate it!

Blenderite
 
juliandale replied on at Permalink Best Answer Reply
juliandale
Try this add-on:
http://www.concrete5.org/marketplace/addons/list-files-from-set/...

You can then make a custom template of the blocks view.php file to output the mp3 files in a table and wrap them in audio tags, and output whatever other file properties you need to display (such as the file title and description).

The user would then manage their MP3 files using only the File Manager, adding the files to a file set (or sets) and editing the file properties accordingly. It'd be much easier for them to learn than teaching them HTML!
Blenderite replied on at Permalink Reply
Blenderite
I had thought of using this before, but I hadn't thought of changing the view.php to make it look like I want it too! I will definitely check this out! Thanks!!!
JohntheFish replied on at Permalink Reply
JohntheFish
For some more examples, I did some image list views for this as a further addon. They may be a closer start for what you want to achieve.

http://www.concrete5.org/marketplace/addons/image-list-templates/...
Blenderite replied on at Permalink Reply
Blenderite
When I try to use that, it doesn't display anything at all. Does it check the file type and only allow certain types?
JohntheFish replied on at Permalink Reply
JohntheFish
Yes, only image types. But because it does the filtering, you can use that as a starting point to hack the view code into a template to other file types.
Blenderite replied on at Permalink Reply
Blenderite
How would I include the CSS that I have already created to style the table?
juliandale replied on at Permalink Reply
juliandale
You could just add it to your theme CSS, but the best place to put it would be in a file named view.css placed with the same folder as what you named your custom template, e.g. If your template was in a folder called "audio_tables", the CSS would need to go here:
/blocks/list_files_from_set/templates/audio_tables/view.css

Of course, if you created your custom template by renaming view.php within the templates folder, (e.g. templates/audio_tables.php) then you'd need to move it into the audio_tables folder and rename it back to view.php

See this page for more info on creating custom templates:
http://www.concrete5.org/documentation/how-tos/designers/custom-blo...