Welcome, Guest
Username: Password: Remember me

TOPIC: multiple pictures on an item

multiple pictures on an item 04 Jun 2013 13:09 #7322

  • albert
  • albert's Avatar
  • Offline
  • Senior Member
  • Posts: 70
  • Thank you received: 2
  • Karma: 2
Hi i would like to make a component to store items, this items will have a different fields, but it will have different pictures associated. How can i make it in a easy way to add multiple pictures without refreshing all the page (json, ajax).
As the pictures will be big, exist a way to upload directly to amazon or so ?

thanks in advance
Albert
The administrator has disabled public write access.

Re: multiple pictures on an item 05 Jun 2013 09:23 #7338

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
This is an excellent case of study.

First, you can follow the tutorial to make a N-M (shame on me this is still not yet available)
And then, with all time free you have to your disposition, learn your component deeper.

With this new 2.5, AJAX comes with a standard, and if you code well, you do not nee a lot to write.
See how the ajax filters are working and try to reproduce something similar.

Someday I will write a tutorial how to use AJAX.

With the component you have, it is really a piece of cake to access, read, update the datas. All features and wizards will apply in order to do not have to care about the ACL layer for example.

You can also handle a part in a JDom class (UI only) if you want to reuse your work.
The acces and updates of the datas must be done in your component (MVC)
Coding is now a piece of cake
The administrator has disabled public write access.

Re: multiple pictures on an item 05 Jun 2013 09:26 #7339

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Just a precision :
You need the N-M only if you are indexing more informations for the picture.
Another way is to use folders.

In the renaming property of the file, you can define markers that also works with folders.
ex : {ID} will replace with the item id.

In that way, every item is related to a subfolder, from witch you can load all images.
Do not forget index.html, I think I forgotten to create them automatically on the automatic creation of a new folder.

Hope it helps.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.083 seconds

Get Started