Category view in mosaic style

Phoca Gallery - image gallery extension
get12
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 25 Dec 2011, 21:59

Category view in mosaic style

Post by get12 »

Hello
I am looking for a way to set the mosaic style for the category view, as it can be done in gallery module.
I mean, I just need clean thumbnails in category view, no any description, no additional buttons.
If I remove all those options in control panel, there is still a blank space under the image.
And if I look at the code, I can see that it is caused by forced width and height applied as style here:

Code: Select all

<div class="phocagallery-box-file pg-box-image" style="height:139px; width:120px;">
My workaround for the moment is editing line 30 in ..components/com_phocagallery/views/category/tmpl/default_images.php
I just remove this part:

Code: Select all

style="height:'. $this->tmpl['imageheight']['boxsize'].'px; width:'.$this->tmpl['imagewidth']['boxsize'].'px;"
It works, but, I don't think it is the best solution.
I don't really like to edit the default code.

Can you please tell if there is any other way to get images displayed in mosaic style in category view?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category view in mosaic style

Post by Jan »

Hi, did you enable custom CSS in parameters? - to skip all CSS settings for Phoca Gallery (the size of boxes are there because of vertical centering)

Jan
If you find Phoca extensions useful, please support the project
Post Reply