Page 1 of 1
How do I change whether medium or small thumbnails are used?
Posted: 08 May 2014, 12:13
by leeinveroak
My question relates to the category view (inside a main category, viewing subcategories).
From what I can see, the only thumbnail choice I have is to use Medium thumbnails. I can change the main category choice from Medium to Small, and I want to do this for the subcategory (Categories) view.
But I also want to keep the detail images within a subcategory (Categories) as they're current mode (Medium).
Sorry if this sounds confusing, but to be honest I often find the whole thing confusing, the whole 'Category, Categories, Detail thing should be made a bit clearer.
I know this would involve some override code editing, but I can only see "correctImageRes['width']" with no way to actually change it based on the backend thumbnail settings.
Any ideas?
Re: How do I change whether medium or small thumbnails are u
Posted: 08 May 2014, 12:42
by leeinveroak
I think I've narrowed it down to the default_images.php file and can see where the thumbnail images are started to be generated, from about line 33 down is where the images are generated.
I can't see where I can change from medium thumbnails to small though. There's an IF statement based about $extImage, and cv->type.. Can someone explain these, and what they are?
Re: How do I change whether medium or small thumbnails are u
Posted: 12 May 2014, 17:08
by Jan
Re: How do I change whether medium or small thumbnails are u
Posted: 12 May 2014, 17:32
by leeinveroak
??? Yes?
This doesn't show anywhere int he PHP code where the small or medium thumbnails are applied.
Re: How do I change whether medium or small thumbnails are u
Posted: 12 May 2014, 18:02
by Jan
Hi, not sure if I understand correctly.
If you want change the small thumbnails to medium or revert, there are a lot of places in Phoca Gallery to do it as there are many features to display the thumbnails (categories view, category view, statistics view, cooliris, user upload, admin, etc.)
So depends on which view and on which place they should be changed.
E.g. in category view:
components/com_phocagallery/views/category/view.html.php
components/com_phocagallery/views/category/tmpl/ ...
Jan
Re: How do I change whether medium or small thumbnails are u
Posted: 12 May 2014, 18:04
by leeinveroak
I only wanted to change them in one view, and I was referencing the file that as far as I could see, was generating that particular view.
But it doesn't matter anymore, as like I said, I'm no longer using Phoca Gallery.
Re: How do I change whether medium or small thumbnails are u
Posted: 12 May 2014, 18:16
by Jan
Ok
- for other users reading this topic
this can be done in:
components\com_phocagallery\views\category\view.html.php
e.g. with changing:
$thumbLinkM = PhocaGalleryFileThumbnail::getThumbnailName($this->items[$iS]->filename, 'medium');
to:
$thumbLinkM = PhocaGalleryFileThumbnail::getThumbnailName($this->items[$iS]->filename, 'small');
or:
$this->items[$iS]->linkthumbnailpath = PhocaGalleryImageFront::displayCategoryImageOrNoImage($this->items[$iS]->filename, $iFormat);
to:
$this->items[$iS]->linkthumbnailpath = PhocaGalleryImageFront::displayCategoryImageOrNoImage($this->items[$iS]->filename, 'small');
Jan