S
S
Sergey Goryachev2016-03-15 22:32:58
PHP
Sergey Goryachev, 2016-03-15 22:32:58

JoomGallery + LightGallery, how to make them friends?

What do we have?
1. Site on Joomla.
2. Installed JoomGallery.
3. Connected LightGallery script.
What we want?
So that when viewing an album, photos open in LightGallery (instead of standard Slimboxes).
I can not determine which link to put in the source.

LightGellary connects simply.

$(document).ready(function(){
    $("#lightgallery a").lightGallery();
});


According to the documentation , she needs a structure like this:
<div id="lightgallery">
  <a href="img/img1.jpg">
      <img src="img/thumb1.jpg" />
  </a>
</div>


In principle, in JoomGellari the structure is similar:
<div class="jg_imgalign_catimgs">
        <a <?php echo $row->atagtitle; ?> href="<?php echo $row->link; ?>" class="jg_catelem_photo jg_catelem_photo_align">
          <img src="<?php echo $row->thumb_src; ?>" class="jg_photo" <?php echo $row->imgwh; ?> alt="<?php echo $row->imgtitle; ?>" /></a>
      </div>


Here's the problem, I can't write href correctly, I need to replace this one href="<?php echo $row->link; ?>"with a link that opens a large image in JoomGellari.
Without an intermediate page of the photo itself.

Nobody faced?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question