Page 1 of 1

Photo error

Posted: Mon Jul 08, 2013 6:28 am
by Bachi

Hi,
I'm having some issue for photo album. Please see attached.
Thank you Image


Photo error

Posted: Mon Jul 08, 2013 11:22 am
by Kateryna Grynko

Hi Bachi,

Sorry for the delay.
Could you provide us with some more information please?
Did you create gallery by tutorial?


Photo error

Posted: Mon Jul 08, 2013 2:18 pm
by Kateryna Grynko

Hi,

Remove the intermediate screen.

Set the basic image as the first element of the list, hide the remaining elements. Then click on opens the gallery.

Opening is bypassing the gallery of photos - each element of the gallery contains a link to the full-size image. If the gallery does not have time to load, then fires a direct link to the image.


Photo error

Posted: Tue Jul 09, 2013 7:34 am
by Bachi

Yes i followed the tutorial for this gallery. How can i fix it without removing intermediate screen? Every property has multiple photos and i want to show all of them in the same way how it is currently.


Photo error

Posted: Tue Jul 09, 2013 9:49 am
by Kateryna Grynko

Hi Bachi,

Do you need this intermediate screen or do you want to delete it?
Using JS code, when generating list with images, you can show only the first image and hide others.


Photo error

Posted: Mon Jul 15, 2013 3:35 pm
by Bachi

Katya,
Could you provide me an appropriate JS code to address this?
Thank you
Bachi Nyangar


Photo error

Posted: Mon Jul 15, 2013 8:21 pm
by Kateryna Grynko

Hi Bachi,

On the description page add resources for photo gallery as it's shown in tutorial. Try the following steps:

  1. Create ListView and make it invisible.
  2. Add Link component as a list item.
  3. For Link add new attribute "rel" with value="external".
  4. Create a service for getting images list.
  5. Map the service to this list.
  6. Before calling service.
  7. On service Success event set local variable galleryIsReady == 1.
  8. On service Success event run the following JavaScript code:
    codeAppery( "list_view_name" ).find("a").photoSwipe();/code
  9. For the main description image create the following handler:
    codeif ( localStorage.getItem('galleryIsReady') === '1' ) {
    Appery( "list_view_name" ).find("a:first").click();
    }/code
    Let us know if this helps please.