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

 
Advanced search

22744 Posts in 6702 Topics- by 17593 Members - Latest Member: permsk

18-09-2019 08:00:30
JOOM::GALLERY::FORUMArchiveJoomGallery 1.5 MVC - ExtensionsModulesHide image used as category thumbnail in category view
Pages: [1]
Print
Author Topic: Hide image used as category thumbnail in category view  (Read 5592 times)
0 Members and 1 Guest are viewing this topic.
spotdesign
Newbie
*
Offline Offline

Posts: 18


View Profile
« on: 17-12-2012 13:24:22 »

Hi,

I would like to hide the image used as category thumbnail in the category view of joomcategories module.

How can I do?

Thanks.
Kind regards.
Logged
Erftralle
Sr. Member
****
Offline Offline

Posts: 346


View Profile
« Reply #1 on: 17-12-2012 17:23:48 »

Hi,

please use the 'Hidden' option in JoomGallery's image manager for those images and don't allow the module to 'Show hidden categories/images' (see module options).

Regards
Erftralle   
Logged
spotdesign
Newbie
*
Offline Offline

Posts: 18


View Profile
« Reply #2 on: 17-12-2012 17:52:36 »

Hi,

I have set the image as "hidden"; it correctly disappear from category view, but also as category thumbnail.
Is there any other setting to keep it only as category thumbnail?

Thanks.
Kind regards.
Logged
Erftralle
Sr. Member
****
Offline Offline

Posts: 346


View Profile
« Reply #3 on: 17-12-2012 18:06:45 »

Hi,

yes, use 'Own choice' for 'Show Thumbnails' (Gallery View -> General Settings resp. Category View -> Sub-Categories). You can use hidden images as category thumbnail in JoomGallery' s category manager.

Regards
Erftralle
Logged
spotdesign
Newbie
*
Offline Offline

Posts: 18


View Profile
« Reply #4 on: 17-12-2012 18:47:05 »

Hi,

I have set use 'Own choice' for 'Show Thumbnails', but the category thumbnail still disappears.

Thanks.
Regards.
Logged
Erftralle
Sr. Member
****
Offline Offline

Posts: 346


View Profile
« Reply #5 on: 17-12-2012 18:58:18 »

Hi,

I have set use 'Own choice' for 'Show Thumbnails', but the category thumbnail still disappears.

Where exactly does it disappear?

Regards
Erftralle
Logged
spotdesign
Newbie
*
Offline Offline

Posts: 18


View Profile
« Reply #6 on: 17-12-2012 19:04:02 »

If I set the image as "hidden", in the category view of JoomCategories module instead of the selected thumbnail image appears a random image of this category.

Thanks.
Kind regards.
Logged
Erftralle
Sr. Member
****
Offline Offline

Posts: 346


View Profile
« Reply #7 on: 17-12-2012 19:44:37 »

Hi,

you could set the module option 'Show hidden categories/images' to 'Yes' Wink. I doubt that this is what you want, because this will show also the hidden images in the slideshow.

Indeed there seems to be a small problem with that special case.

Please change lines 67 to 74 of the file ../modules/mod_joomcat/tmpl/default.php

from
Code
          $img_row = &$img_rows[$k];
         if($jc_obj->getConfig('showthumb') == 1 && $row->imgid != 0) :
           // show thumbnail configured in JoomGallery category manager
           $cat_img_row = $jc_obj->getPicture($row->imgid, $jc_obj->getConfig('aid'));
           if(isset($cat_img_row->id)) :
             $img_row = $cat_img_row;
           endif;
         endif; ?>
 

to
Code
          $img_row = $img_rows[$k];
         if($jc_obj->getConfig('showthumb') == 1 && $row->imgid != 0) :
           // show thumbnail configured in JoomGallery category manager
           $showhidden = $jc_obj->getConfig('showhidden');
           $jc_obj->addConfig('showhidden', 1);
           $cat_img_row = $jc_obj->getPicture($row->imgid, $jc_obj->getConfig('aid'));
           $jc_obj->addConfig('showhidden', $showhidden);
           if(isset($cat_img_row->id)) :
             $img_row = $cat_img_row;
           endif;
         endif; ?>
 

Regards
Erftralle

Edit: Another solution added.
« Last Edit: 17-12-2012 22:25:33 by Erftralle » Logged
spotdesign
Newbie
*
Offline Offline

Posts: 18


View Profile
« Reply #8 on: 18-12-2012 15:16:36 »

Thanks a lot!
It works!

Kind Regards.
Marco
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 12335 access attempts in the last 7 days.

maternal