S
S
symply_rabbit2019-01-10 13:31:18
1C-Bitrix
symply_rabbit, 2019-01-10 13:31:18

Is it possible to scroll through the photos of this property in the image zoom window from the "ADDITIONAL PHOTO" property?

Removed images from the "additional photo" property with a small size of 100 px x 100px , by clicking on each image, the original image opens in a new window

<?foreach($arItem["PROPERTIES"]["MORE_PHOTO"]["VALUE"] as $photo):?>






                           <a href="<?=CFile::GetPath($photo)?>" class="">
                                <img style="  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: top;
  object-position: top;
  width: 90px;
  height: 90px;" src="<?=CFile::GetPath($photo)?>" alt="">
                            
</a>
    <?endforeach?>

Is it possible to make arrows in this window so that the user scrolls through large pictures? if so, what is the link to the next/previous picture of this property? Or is it better to use some kind of slider?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-01-10
@symply_rabbit

Is it possible to make arrows in this window so that the user scrolls through large pictures?

Yes, you can. Of course do. Personally, I don't mind))
PS If I were
you, I would consider using a fancybox gallery. In this case, you will not have to do any additional manipulations to start scrolling.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question