Page 1 of 1

Show description below the thumbnail in the gallery.

Posted: Mon Apr 18, 2011 10:41 pm
by rmattson
Is there anyway to have the description show below the thumbnail in the gallery.

Re: Classic Centered Template

Posted: Thu Apr 28, 2011 9:55 am
by kekeljevic

Code: Select all

$html.= $AG->writePopupThumb($imageName)."<div style='text-align:center;'>".$AG->writeDescription($imageName)."</div>";
This would add captions but it's a question how to handle various sizes of captions. Some captions could go in more than one line and it would make quite a mess. It's possible to make something which will look good only with short captions, like a current Albums style.

Re: Classic Centered Template

Posted: Mon May 02, 2011 11:40 am
by realovich
I have not displayed the caption to the photo.

Re: Show description below the thumbnail in the gallery.

Posted: Mon Sep 19, 2011 11:26 am
by cjx
kekeljevic wrote:

Code: Select all

$html.= $AG->writePopupThumb($imageName)."<div style='text-align:center;'>".$AG->writeDescription($imageName)."</div>";
This would add captions but it's a question how to handle various sizes of captions. Some captions could go in more than one line and it would make quite a mess. It's possible to make something which will look good only with short captions, like a current Albums style.
Hi all

Thank you for this great extension.

Which file i have to put this code in ?

Regards

Re: Show description below the thumbnail in the gallery.

Posted: Mon Sep 19, 2011 11:51 am
by cjx
found that already
here is
i am using classic template so
plugins\content\admirrorgallery\templates\classic\index.php

find this line

Code: Select all

$html.= $AG->writePopupThumb($imageName);
replace with this

Code: Select all

$html.= $AG->writePopupThumb($imageName)."<div style='text-align:center;'>".$AG->writeDescription($imageName)."</div>";
this is all you need to do

Thank you all

Re: Show description below the thumbnail in the gallery.

Posted: Mon Sep 19, 2011 11:59 am
by Vasiljevski
In the template index.php file. Depending on the template you are using :)
This trick works for classic and listed templates, or any custom template you made :)