CMS Multiupload Form and Link to Database

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

09-Jul-12 00:31
Hello! I just created a website using the Elated CMS tutorials (core, categories and images) and I would like to add a final touch to its main functionality.

My website is a music manager (like iTunes but online) and I need a tutorial on how to create the following:
- Create a class for music management
- Create an upload form for each article where I can upload songs
- Make those songs correspond to their respective article (like image for article)
- Store the song information into the database (name, format)
- To be able to call those songs for each article every time I need (like the results -> name for example at images)

How can I do this?
I also want to implement the jplayer.org software in order to make it cross-platform. I want to create playlists for each article apart.
13-Jul-12 02:55
@Skarrian: Well I can't explain all that in a forum post! But it sounds like you have a plan that will work. You can pretty much take the existing code and extend it to allow MP3 uploads instead of image uploads.

Never used jPlayer but it looks straightforward to integrate.

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/
13-Jul-12 04:00
@matt: I will try to do it using the image upload tutorial. The problem is that the paths are not stored in the database (only the extension) and I have to store multiple files (songs) for each article, not only one (image).
16-Jul-12 02:04
@Skarrian: Yeah, just modify the table to store the whole filename if you want, rather than just the extension. If you want multiple files per article then I recommend creating a separate 'songs' table with fields 'articleId', 'name', 'description', 'filename', etc.

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/

 
New posts
Old posts

Follow Elated