Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Multiple files 08 Feb 2013 10:36 #6686

Hi,
I am developing an app where i would like to record a list of animals, every item will have data, as name, birth, and so, and pictures. I would like to be able to upload a number indefined of pictures. Is it possible to do it in a simple way?

Please Log in or Create an account to join the conversation.

Re: Multiple files 08 Feb 2013 10:40 #6687

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Easiest way would be to add another table 'animal_images' and add the animal's id as FK when you store a picture for that animal. This way, you can add as many images as you like.

Hope it helps,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Re: Multiple files 10 Feb 2013 19:57 #6692

Yes, but doing it i should have 2 different/sepparated forms isn't?
Or there is away to integrate both forms?

Please Log in or Create an account to join the conversation.

Re: Multiple files 10 Feb 2013 23:45 #6693

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Yes, you'll have 2 forms in builder but, with custom coding you could use Ajax to display/submit your new images and js to dynamically add an "add" & "remove" button after each one.

It's been discussed here before, try searching "multiple forms" and "save multiple tables" to get started and also "Ajaxify". That should get you started...

Good luck,

G
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.324 seconds

The j-cook project is one of the best of its kind and it is nice that we all try to contribute in little ways to make life easy for each other.

vlemos (Forum)  

Get Started