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

TOPIC:

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

  • albert
  • albert's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 70
  • Thank you received: 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

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

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

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

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started