Page 1 of 2
Gallery name under image + image size
Posted: 30 Jun 2010, 18:04
by vivi
Hello, In the frontpage of my web I have 5 galleries in Horizontal way (5 columns). However the name of the gallery is shown to the right, is it possible to put the name of each gallery below each image?
And the other question is about the gallery size, the only option I find to change the size is "medium with shadow" as the maximum and this is too small for what I need. Any place to define a custom size, or choose one bigger than "medium"?
I find many options for customization and not these 2 which are the basic
Thanks
Re: Gallery name under image + image size
Posted: 01 Jul 2010, 13:35
by Jan
Hi, can I see the site? I think you need to customize the title (but don't know as didn't see what exactly you mean)
Resizing thumbnails, see:
https://www.phoca.cz/documents/2-phoca-g ... w-resizing
Jan
Re: Gallery name under image + image size
Posted: 02 Jul 2010, 07:07
by vivi
http://elisacalabuig.comule.com/
Thanks for answer, I mean the title of the galleries that appears on the right side of each gallery, I would like to have it under each thumbnail but I don't find the option
As you can see the image is blocking the text, how to put that text down?
Thanks
Re: Gallery name under image + image size
Posted: 05 Jul 2010, 18:04
by Jan
Hi, I cannot connect to your site

Re: Gallery name under image + image size
Posted: 30 Jul 2010, 11:10
by mmicko
Hi, i have the same problem. Maybe will be for Jan better explanation in czech language (my english is not very good)
Podle mě by chtěl mít vivi v hlavním seznamu galerií jméno galerie pod obrázkem a ne napravo od obrázku jako je to teď.
Např. tady
http://www.micko.cz/joomla/index.php/ga ... ategory/12
je to kvůli tomu dost nepřehledný a musím mít nastavený jenom dva sloupce. Kdyby byl název galerie (nebo subgalerie) pod obrázkem, mohl bych mít v pohodě tři subgalerie vedle sebe.
Re: Gallery name under image + image size
Posted: 31 Jul 2010, 15:25
by Jan
Hi, then just customize the template of "Categories View"
components/com_phocagallery/views/categories/tmpl/default.php - just add <br /> tag for not table design or change the table desing - add next row in html code.
Jan
Re: Gallery name under image + image size
Posted: 02 Aug 2010, 17:54
by kreeden
Did you guys manage to sort this out? I tried to change the default.php file but couldn't see where I had to do it (No

). If you managed to do it I'd appreciate your coding.
Thanks
Re: Gallery name under image + image size
Posted: 29 Sep 2010, 13:31
by vivi
Solved:
Code: Select all
// -------------------
// TABLE LAYOUT
// -------------------
if ($this->tmpl['displayimagecategories'] == 1) {
for ($i = 0; $i < $countCategories; $i++) {
if ( $columns == 1 ) {
echo '<table>';
} else {
$float = 0;
foreach ($begin as $k => $v) {
if ($i == $v) {
$float = 1;
}
}
if ($float == 1) {
echo '<div style="position:relative;float:left;'.$fixedWidhtStyle1.'"><table>';
}
}
echo '<tr>';
echo '<td align="center" valign="middle"><a href="'.$this->categories[$i]->link.'" class="category'.$this->params->get( 'pageclass_sfx' ).'">'.$this->categories[$i]->title.'</a> ';
if ($this->categories[$i]->numlinks > 0) {echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';}
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td align="center" valign="middle" style="'.$this->tmpl['imagebg'].';text-align:center;"><a href="'.$this->categories[$i]->link.'">';
if (isset($this->categories[$i]->extpic) && $this->categories[$i]->extpic) {
$correctImageRes = PhocaGalleryPicasa::correctSizeWithRate($this->categories[$i]->extw, $this->categories[$i]->exth, $this->tmpl['picasa_correct_width'], $this->tmpl['picasa_correct_height']);
echo JHTML::_( 'image', $this->categories[$i]->linkthumbnailpath, str_replace('»', '-',$this->categories[$i]->title), array('width' => $correctImageRes['width'], 'height' => $correctImageRes['height']), '', '', 'style="border:0"');
} else {
echo JHTML::_( 'image.site', $this->categories[$i]->linkthumbnailpath, '', '', '', str_replace('»', '-',$this->categories[$i]->title), 'style="border:0"' );
}
echo '</a></td>';
echo '</tr>';
if ( $columns == 1 ) {
echo '</table>';
} else {
if ($i == $endFloat) {
echo '</table></div><div style="clear:both"></div>';
} else {
$float = 0;
foreach ($end as $k => $v)
{
if ($i == $v) {
$float = 1;
}
}
if ($float == 1) {
echo '</table></div>';
}
}
}
}
}
Re: Gallery name under image + image size
Posted: 02 Oct 2010, 17:30
by Jan
Ok
Re: Gallery name under image + image size
Posted: 08 Oct 2010, 17:31
by mmicko
Hello Jan,
thank you for your help, but with solution from vivi i have now name of gallery above picture but i would like to have name under picture - where (and how) exactly i should change the code posted by vivi?
And second question, this names above pictures i have in main gallery view only
http://www.micko.cz/joomla/index.php/galerie
but if i go to subgallery with next subgalleries, then is back the name on the right side of picture
http://www.micko.cz/joomla/index.php/ga ... ategory/12
many thanks for your help
Michal