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?
How do I change whether medium or small thumbnails are used?
-
leeinveroak
- Phoca Newbie

- Posts: 5
- Joined: 06 May 2014, 18:07
-
leeinveroak
- Phoca Newbie

- Posts: 5
- Joined: 06 May 2014, 18:07
Re: How do I change whether medium or small thumbnails are u
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?
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?
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How do I change whether medium or small thumbnails are u
If you find Phoca extensions useful, please support the project
-
leeinveroak
- Phoca Newbie

- Posts: 5
- Joined: 06 May 2014, 18:07
Re: How do I change whether medium or small thumbnails are u
??? Yes?
This doesn't show anywhere int he PHP code where the small or medium thumbnails are applied.
This doesn't show anywhere int he PHP code where the small or medium thumbnails are applied.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How do I change whether medium or small thumbnails are u
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
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
If you find Phoca extensions useful, please support the project
-
leeinveroak
- Phoca Newbie

- Posts: 5
- Joined: 06 May 2014, 18:07
Re: How do I change whether medium or small thumbnails are u
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.
But it doesn't matter anymore, as like I said, I'm no longer using Phoca Gallery.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How do I change whether medium or small thumbnails are u
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
- 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
If you find Phoca extensions useful, please support the project