Page 1 of 1

Image Layout

Posted: 18 Jul 2008, 03:17
by likestuff
Hi There,

Beautiful Component. I was wondering how to get my thumbs on the left or right of the larger image. I am using the Switch (swap) Image behaviour but because the thumb is below the larger image, users will not be able to see it. If I have the thumbs on the left or right of the larger image that would work out great.

Thank you!!

Re: Image Layout

Posted: 18 Jul 2008, 21:25
by Jan
Hi, there is no such possibility, images will be displayed below the main image (component), but you can try to use it with plugin...

Jan

Re: Image Layout

Posted: 18 Jul 2008, 22:27
by likestuff
Ok. If this is not possible then there really isn't much use for the Switch (swap) Image option because you can't see the main image anyway.

Can you give me a hint as to what you mean by using a plugin for this work?

Thank you!!

Re: Image Layout

Posted: 18 Jul 2008, 23:09
by likestuff
Hi,

Me again. I think there may be a way around this. I am looking at the default.php template and I just want to know which portion of the code displays the thumbs. I would like to copy the code and place it where the content is RED below is. I think this will display the thumbs next to the main image. Thanks again.

<div><center class="main-switch-image"><table border="0" cellspacing="5" cellpadding="5" style="" class="main-switch-image-table"><tr><td align="center" valign="middle" style="text-align:center;width:<?php echo $switchWidth;?>px;height:<?php echo $switchHeight;?>px; background: url('<?php echo JURI::root(); ?>components/com_phocagallery/assets/images/icon-switch.gif') <?php echo $switchCenterW ;?>px <?php echo $switchCenterH;?>px no-repeat;margin:0px;padding:0px;">

<?php echo JHTML::_( 'image.site', ''.str_replace('phoca_thumb_m_','phoca_thumb_l_',$this->basicimage).'', '', '', '', '', ' id="PhocaGalleryobjectPicture" border="0"'); ?>

</td>
<td>Thumbs go here</td>
</tr></table></center></div>

Re: Image Layout

Posted: 20 Jul 2008, 22:27
by Jan
the displaying of thumbnails begin below the switch image:

row FROM 65 TO 282 ... so maybe you should try to remove or change some divs or tables trs or tds

Jan

Re: Image Layout

Posted: 21 Jul 2008, 18:16
by likestuff
Will try that. Thank you.

Re: Image Layout

Posted: 28 Apr 2009, 19:36
by Jan
Hi,
see:
components\com_phocagallery\views\category\tmpl\default.php