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

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started