Display a collection of images within a page

Display a collection of images within a page

I have an app that calls the realtor.com API.  I am successfully grabbing a collection of images and uploading them via a subform of image fields.  I would like to display the images from the most recent API call somewhere on a page in the app.  I have made a few attempts at this with zml, but I am having some trouble doing this.  Ideally I would like to have this displayed like a carousel of images where a button click will browse through the available images.  Any suggestions on how to get started with this? Below I have a snippet of my code that shows how this subform is populated.  

  1. photos = home.getJSON("photos").toList();
  2. // Grab the images
  3. img0 = photos.get(0).toMap().getJSON("href").removeLastOccurence("s.jpg").concat("od.jpg");
  4. img1 = photos.get(1).toMap().getJSON("href").removeLastOccurence("s.jpg").concat("od.jpg");
  5. img2 = photos.get(2).toMap().getJSON("href").removeLastOccurence("s.jpg").concat("od.jpg");
  6. img3 = photos.get(3).toMap().getJSON("href").removeLastOccurence("s.jpg").concat("od.jpg");
  7. img4 = photos.get(4).toMap().getJSON("href").removeLastOccurence("s.jpg").concat("od.jpg");
  8. img5 = photos.get(5).toMap().getJSON("href").removeLastOccurence("s.jpg").concat("od.jpg");
  9. img6 = photos.get(6).toMap().getJSON("href").removeLastOccurence("s.jpg").concat("od.jpg");
  10. img7 = photos.get(7).toMap().getJSON("href").removeLastOccurence("s.jpg").concat("od.jpg");
  11. img8 = photos.get(8).toMap().getJSON("href").removeLastOccurence("s.jpg").concat("od.jpg");
  12. img9 = photos.get(9).toMap().getJSON("href").removeLastOccurence("s.jpg").concat("od.jpg");
  13. //input.Image0 = "<img src=\"" + img0 + "\"></img>";
  14. // Create rows in the subform
  15. row0 = Search_by_Address.Property_Images();
  16. row1 = Search_by_Address.Property_Images();
  17. row2 = Search_by_Address.Property_Images();
  18. row3 = Search_by_Address.Property_Images();
  19. row4 = Search_by_Address.Property_Images();
  20. row5 =Search_by_Address.Property_Images();
  21. row6 =Search_by_Address.Property_Images();
  22. row7= Search_by_Address.Property_Images();
  23. row8= Search_by_Address.Property_Images();
  24. row9= Search_by_Address.Property_Images();
  25. // Insert images into rows
  26. row0.Image = "<img src=\"" + img0 + "\"></img>";
  27. row1.Image = "<img src=\"" + img1 + "\"></img>";
  28. row2.Image = "<img src=\"" + img2 + "\"></img>";
  29. row3.Image = "<img src=\"" + img3 + "\"></img>";
  30. row4.Image = "<img src=\"" + img4 + "\"></img>";
  31. row5.Image = "<img src=\"" + img5 + "\"></img>";
  32. row6.Image = "<img src=\"" + img6 + "\"></img>";
  33. row7.Image = "<img src=\"" + img7 + "\"></img>";
  34. row8.Image = "<img src=\"" + img8 + "\"></img>";
  35. row9.Image = "<img src=\"" + img9 + "\"></img>";
  36. rows = Collection();
  37. rows.insert(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9);
  38. input.Property_Images.insert(rows);

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方