Welcome, Guest. Please login or register.
Did you miss your activation email?

 
Advanced search

22601 Posts in 6661 Topics- by 17595 Members - Latest Member: mpedrat

25-06-2018 00:17:41
JOOM::GALLERY::FORUMJoomGallery 3.x JUXFrontendChange the number of columns in different galleries
Pages: [1]
Print
Author Topic: Change the number of columns in different galleries  (Read 52 times)
0 Members and 1 Guest are viewing this topic.
mpedrat
Newbie
*
Offline Offline

Posts: 5


View Profile
« on: 11-06-2018 20:25:32 »

Hi everybody!

I need to change the column numbers on different galleries.

On my site: (https://zylcam.com.ar/index.php/catalogo/catalogo-digital) i need to use subcategories with 3, 4 or 5 columns.

Also, i need to set a specific size of thumbnails in each image.

¿can u help me with this?

Thank you very much!
« Last Edit: 14-06-2018 20:41:32 by mpedrat » Logged
MrMusic
Administrator
Hero Member
*****
Offline Offline

Posts: 1028



View Profile
« Reply #1 on: 12-06-2018 13:36:29 »

Hi,

with a Template Override of the bootone_images.php file, it is possible to specify a different number of columns for different categories.
However, this is only possible if you enter the category-id there.
Example for the category ids 60 and 19:
Code:
if($this->category->cid == 60)
{
   $column = 4;    // 4 Columns in category-view
}

if($this->category->cid == 19)
{
   $column = 2;    // 2 Columns in category-view

}

You can change the size of the thumbnails by re-creating the thumbnails in Image Manager with different settings in the Configuration Manager....
Logged

Regards
MrMusic
Is your Problem solved? Please mark it as solved
Demo-Shop for JoomGallery Images
mpedrat
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #2 on: 12-06-2018 17:32:26 »

Hi MrMusic!

Thank you very much.

Can u specific me the line of bootone_image.php to insert the code?

I found the file in /public_html/components/com_joomgallery/views/category/tmpl

Thats ok?

Thank you very much!
Logged
MrMusic
Administrator
Hero Member
*****
Offline Offline

Posts: 1028



View Profile
« Reply #3 on: 13-06-2018 10:11:07 »

Yes, bootone_images.php is the right file.
In line 25 the default value is loaded from the JoomGallery Configuration.
You will need to enter your customization immediately afterward.
Example:
Code:
$column     = $this->_config->get('jg_colnumb');
if($this->category->cid == 60)
{
   $column = 4;    // 4 Columns in category-view
}
if($this->category->cid == 19)
{
   $column = 2;    // 2 Columns in category-view
}
Logged

Regards
MrMusic
Is your Problem solved? Please mark it as solved
Demo-Shop for JoomGallery Images
mpedrat
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #4 on: 14-06-2018 20:41:04 »

Thank you very much! Is working fine.
Logged
Pages: [1]
Print
Jump to:  

HOSTED BY SCHWARZKÜNSTLER ®

PROTECTED BY  ZB BLOCK  AND Project Honey Pot
Theme orange-lt created by panic

Bad Behavior has blocked 229 access attempts in the last 7 days.