images cut in half

Phoca Gallery plugins - plugins for Phoca Gallery extension
Archivarius
Phoca Member
Phoca Member
Posts: 10
Joined: 28 Sep 2018, 10:35

Re: images cut in half

Post by Archivarius »

Hello!
After migrating to Joomla 4 the problem with cut images resurfaced.
Phoca 4.5.5
Here is a test website with cut image in full view: http://host1853202.hostland.pro/bahai-f ... ly-tablets Descriptions are not shown either, but category title is shown instead.
And here is a fine working page with Joomla 3 (Phoca 4.4.3): https://bahaiarc.org/bahai-faith/founde ... ly-tablets
Any ideas how to fix it?

Tags:
christine
Phoca Hero
Phoca Hero
Posts: 2818
Joined: 28 Nov 2010, 17:20

Re: images cut in half

Post by christine »

Hi,

Phoca Component:
Options > Detail View > Detail Window (Choose) e.g. > Photoswipe
Options > Detail View > Detail Window > Photoswipe > Display Caption > Title and description or:
> Only Description

If using Plugin: https://www.phoca.cz/download/66-phoca- ... ery-plugin > 4.5.4

BTW: Check, if you are using shape 5 for Joomla 4

Kind regards
Christine
Archivarius
Phoca Member
Phoca Member
Posts: 10
Joined: 28 Sep 2018, 10:35

Re: images cut in half

Post by Archivarius »

Hi,
Yes, all the settings are as following:
Options > Detail View > Detail Window > Photoswipe
Options > Detail View > Detail Window > Photoswipe > Display Caption > Only Description
But in the detail view only title is shown and the image is cut in half. I don’t know what to do.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: images cut in half

Post by Jan »

Hi, maybe it is in conflict with your template. When you switch to standard template (for test only), do you get the same problem?

Jan
If you find Phoca extensions useful, please support the project
Archivarius
Phoca Member
Phoca Member
Posts: 10
Joined: 28 Sep 2018, 10:35

Re: images cut in half

Post by Archivarius »

Good point! When I switch to Cassiopeia template images are not cut but distorted to fit horizontal layout. And the descriptions are not shown but only title is visible. That is strange behavior because settings set to ‘Display Caption > Only Description’.
Archivarius
Phoca Member
Phoca Member
Posts: 10
Joined: 28 Sep 2018, 10:35

Re: images cut in half

Post by Archivarius »

Hi,
I wrote to developers of the template and they suggested to change some settings in the template and they added the custom CSS rule to the file css/thirdparty.css
/* Phoca */
.pswp__img {
object-fit: contain;
}

Now images look correct.

I don’t know how to turn descriptions on.
In Phoca component settings are set as following:
Options > Detail View > Detail Window > Photoswipe > Display Caption > Only Description

When I switch to Cassiopeia template descriptions are not shown but only title is visible.

By the way, I’ve noticed that in the Cassiopeia template Phoca slide show doesn’t work as in Shape5 template:
http://host1853202.hostland.pro/?view=a ... atid=100:2
Under Joomla 3 all is working fine:
https://bahaiarc.org/?view=article&id=1 ... atid=100:2
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: images cut in half

Post by Jan »

Hi, what do you exactly mean with: "Cassiopeia template Phoca slide show doesn’t work as in Shape5 template"?

Jan
If you find Phoca extensions useful, please support the project
Archivarius
Phoca Member
Phoca Member
Posts: 10
Joined: 28 Sep 2018, 10:35

Re: images cut in half

Post by Archivarius »

HI,
I guess I mixed up pages and gave different addresses. What I meant is that you may see a Phoca Gallery Slideshow in Joomla 3 at:
https://bahaiarc.org/?view=article&id=1 ... atid=100:2
Same page in Joomla 4 doesn’t show any images in both templates (Shape5 and Cassiopeia):
http://host1853202.hostland.pro/?view=a ... atid=100:2

And there is still a problem with absent image description at: http://host1853202.hostland.pro/bahai-f ... id=1&pid=1 I don’t know what to do.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: images cut in half

Post by Jan »

Hi, now I understand, for now, there is no Phoca Gallery slideshow plugin for Joomla 4 or Joomla 5.

Jan
If you find Phoca extensions useful, please support the project
Post Reply