I am using embeded Gallery2 and I thought that it would be great to use thickbox with this as I have so many problems with lightbox conflicts. So, I modified the ImageBlock.tpl file in Gallery2 to use thickbox and provide a link to the corresponding photo page within Gallery. This works. However it does seem to produce one strange additional piece of output, a link with "Show This Photo Page/>" as the text and "Close" as the alt text in the information area at the bottom of the image.

The following is an example of the generated html (tidied a little for readability) and I have attached a screenshot of the resulting thickbox display to clarify the problem.

<a
   href="http://localhost/drupal/gallery2/d/39-1/Water+lilies.jpg"
   class="thickbox" 
   rel="Random Images5508" 
   title="Water lilies <a href='/drupal/index.php?q=gallery&amp;g2_core.ShowItem=&amp;g2_itemId=39'>Show This Photo Page</a>"
>
  <img src="http://localhost/drupal/gallery2/d/40-2/Water+lilies.jpg" width="150" height="150" id="IFid5" class="ImageFrame_none" alt="Water lilies" longdesc="Water Lillies"/>
</a> 
CommentFileSizeAuthor
tb_bug.png115.15 KBderryb

Comments

frjo’s picture

Status: Active » Closed (fixed)