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.103 seconds

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started