Hi Stella,

i have the same Problem as posted in May by timeril
http://drupal.org/node/263502

timeril solved the Problem by changing the URL-Rewrite-Rule to photos/%page%.
But in my case I need the Path because i am using the Section-Modul to Switch Themes by Path.

Can you please take a Look at my Site and give me a Hint:
http://efehn.de/gallery/svviktoria/projekte/sanierung2008/

Here is the URL-Code with URL-Rewrite /gallery/%page% (wich works)

<a href="/gallery/?g2_itemId=7638">
<img src="/fotos/main.php?g2_view=core.DownloadItem&amp;g2_itemId=7639&amp;g2_serialNumber=2" width="100" height="75" id="IFid1" class="ImageFrame_image giThumbnail" alt="CIMG0096"/>
</a>

Thank you for your time

Greetings from Germany
aquanox24

Comments

stella’s picture

Status: Active » Closed (works as designed)

It's not possible to do it with "photos/%path%. Below is the HTML produced by Gallery2 when displaying the thumbnail when using the path:

<a href="/gallery/svviktoria/projekte/sanierung2008/CIMG0096.JPG.html">
<img src="/fotos/main.php?g2_view=core.DownloadItem&amp;g2_itemId=7639&amp;g2_serialNumber=2" width="100" height="75" id="IFid1" class="ImageFrame_image giThumbnail" alt="CIMG0096"/>
</a>

Lightbox2 has no way of determining the g2_itemId of the full size image from this information. When "photos/%page%" is used, then this g2_itemId is stored in the anchor link which Lightbox2 can parse and then use.

I don't see a way for this to work using "photos/%path%", sorry.

Cheers,
Stella

aquanox24’s picture

I guesses such answer.

Thank you for your quick Response.