2 Replies Latest reply: Sep 12, 2007 2:42 PM by oicram RSS

    Spry and ADDT - Add to favorites

    oicram Community Member
      Hello all.

      I'm using Dreamweaver with ADDT, mySQL and Php.

      Scenario:
      I have a ordinary repeat region that shows images of homeless dogs. (why don't I have a spry repeat region that shows images? Because neither the images or ther path are in the database. I'm using "Multiple Image Upload Without Saving to the Database Server Behavior" from ADDT. Why not saving in the database? Because I cannot add multiple images associated to a record and save them to the database using ADDT. (Right? Please confirm if I'm right)

      I'd like to allow Spry effects in the images, so:
      1) The user can drag and drop the images to a favorites section (with place for 5 dog pictures)
      OR
      2) Having a button saying "add to my favorites" so when the user clicks the pictures appear in the favorite area (with some spry effect so the user can see whats going on).


      I don't you ask you to tell me how can this be done will all detail, of course, but I need some light of how can this be accomplish. I'm ready to digg a little in Spry.


      Thanks, and hope you can help me out.
        • 1. Re: Spry and ADDT - Add to favorites
          Community Member
          The feature you are looking for, Drag & Drop doesn't exists yet in Spry which would allow you to complete the steps above describe for a user to add picture to their favorites.

          About the multiple upload, I'm not sure, but I think you can actually upload multiple files and associate them with a record by using actually a second database table that would keep the images location and will also contain a foreign key to the original table you want to associate these records. I think you can manage these tables using the Master Detail structure. Is been awhile since I didn't worked with MXKollection (now ADDT) and I'm not sure these information are correct but it is worthing to give a search on these ideas in the documentation.

          Regards,
          Cristian
          • 2. Re: Spry and ADDT - Add to favorites
            oicram Community Member
            I have look to the interakt and adobe forums, and the answer is:

            "Indeed, you cannot apply it to a form, but you can use a two step process. On the first page, you have your form, that submits by GET to the form where you have the multiple file upload with save to database. Then, on that page, you apply the SB, and using InterAKT Dynamic Data (the button with the blue lightning bolt) you can insert into the database the values submitted by the first form."

            So I can't. The drag and drop is not supported. Ok. It was not mandatory and actually I don't know if the user will understand. But what about the other solution with the button?

            thanks in advance