JOOM::GALLERY::FORUM

Archive => Modules => Topic started by: spotdesign on 17-12-2012 13:24:22



Title: Hide image used as category thumbnail in category view
Post by: spotdesign 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.


Title: Re: Hide image used as category thumbnail in category view
Post by: Erftralle 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   


Title: Re: Hide image used as category thumbnail in category view
Post by: spotdesign 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.


Title: Re: Hide image used as category thumbnail in category view
Post by: Erftralle 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


Title: Re: Hide image used as category thumbnail in category view
Post by: spotdesign 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.


Title: Re: Hide image used as category thumbnail in category view
Post by: Erftralle 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


Title: Re: Hide image used as category thumbnail in category view
Post by: spotdesign 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.


Title: Re: Hide image used as category thumbnail in category view
Post by: Erftralle on 17-12-2012 19:44:37
Hi,

you could set the module option 'Show hidden categories/images' to 'Yes' ;-). 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.


Title: Re: Hide image used as category thumbnail in category view
Post by: spotdesign on 18-12-2012 15:16:36
Thanks a lot!
It works!

Kind Regards.
Marco