Change the original image's path

Jun 25, 2012 at 4:32 PM

Hello there :)

 

My files structure *has to be* like this:

  • assets/original/image1.jpg (not images/image1.jpg)
  • assets/thumbs/image1.jpg

But I've noticed that AD Gallery by default uses this structure:

  • assets/image1.jpg
  • assets/thumbs/image1.jpg

How could I change the behavior so it can read my custom original image path and not the default one? Is that hard?

Thanks in advance!

P.S. Great library!

Jun 25, 2012 at 8:03 PM

unless i misunderstand, you set the image path in your html markup. 

Jun 25, 2012 at 8:15 PM
Edited Jun 25, 2012 at 8:17 PM
fatpluto wrote:

unless i misunderstand, you set the image path in your html markup. 

As I understand from the examples, in the html markup you set the thumb's path like this: 

<img src="images/thumbs/t1.jpg" title="Title for 1.jpg">

and then the gallery automatically assumes that the original image is located at "images/t1.jpg", right?

So is there a way to manually set the original's image path also? I don't see any examples where you can do this.

Jun 25, 2012 at 8:36 PM

That might be the case, but w/ some extra markup you can specify your own paths like so:

<ul class="ad-thumb-list gallery">                       

<li><a href="assets/images/gallery_1.jpg">

<img src="images/gallery_1_thumb.jpg" title="title"></a>

</li>                  

</ul>

Jun 25, 2012 at 8:47 PM

Wow didn't got that from the documentation.

Thanks a lot! :)