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

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started