Phoca Gallery Plugin parameters confusion (e.g. detail)

Phoca Gallery plugins - plugins for Phoca Gallery extension
Destroy666
Phoca Member
Phoca Member
Posts: 12
Joined: 19 Mar 2024, 11:27

Phoca Gallery Plugin parameters confusion (e.g. detail)

Post by Destroy666 »

https://www.phoca.cz/documentation/77-p ... ery-plugin - according to this, `detail` argument should change how the bigger images are displayed, for instance. But I changed it to all the numbers and it didn't change anything. Currently it's set to:

Code: Select all

{phocagallery view=category|categoryid=2|detail=6}
What am I missing?

Also, how can you change the CSS of the plugin? For example add an icon on hover on the images or change the background that pops up to be transparent.

Example: https://www.lenkraddesign.eu/oferta/kierownice-gotowe
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48182
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Plugin parameters confusion (e.g. detail)

Post by Jan »

Hi, no, detail argument just set the type of detail windows (a lot of them were remomed in latest version due to not having responsivity).

You can change CSS in your user.css/custom.css of your template. Such files are here for custom changes in CSS and are not overwritten by update. Styles in this files can then influence whole Joomla, including Phoca Gallery plugin.

Jan
If you find Phoca extensions useful, please support the project
Destroy666
Phoca Member
Phoca Member
Posts: 12
Joined: 19 Mar 2024, 11:27

Re: Phoca Gallery Plugin parameters confusion (e.g. detail)

Post by Destroy666 »

Ok, so no detail scripts are available? Probably should update documentation in that case.

Thanks, I'll check the override.
Destroy666
Phoca Member
Phoca Member
Posts: 12
Joined: 19 Mar 2024, 11:27

Re: Phoca Gallery Plugin parameters confusion (e.g. detail)

Post by Destroy666 »

I'm still very confused about the detail part. Right now some of my articles started showing this:
https://beeimg.com/images/m96136060271.png

E.g.
https://lenkraddesign.eu/oferta/dywaniki-samochodowe
https://lenkraddesign.eu/blog/poradniki ... nicy-skora

Full box is shown here:
https://beeimg.com/images/f81691860602.png

E.g.
https://lenkraddesign.eu/oferta/kierown ... iezarowych
Also gallery itself is using this.

While all are using detail=6 parameter. What's going on? Why do they display differently?

Could you also tell which detail param possibilities are not removed and possible to use in latest Joomla 4 version, please? E.g. 1, 6 And which parameters from these are usable in general: phoca.cz/documentation/77-phoca-gallery/14-phoca-gallery-plugin/58-displaying-phoca-gallery-plugin As many seem to be ignored.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48182
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Plugin parameters confusion (e.g. detail)

Post by Jan »

Hi, the detail parameter was moved to plugin options:

Image

and as you can see, there is only one method, Photoswipe as only this method meets modern requirements

On your site, I don't get the Photoswipe working, maybe there is some Javascript conflict which prevents it from displaying :idea:

Jan
If you find Phoca extensions useful, please support the project
Destroy666
Phoca Member
Phoca Member
Posts: 12
Joined: 19 Mar 2024, 11:27

Re: Phoca Gallery Plugin parameters confusion (e.g. detail)

Post by Destroy666 »

Hmmm. It worked fine in articles before. It works fine in gallery. I see no related errors in console. Any idea what could have gone wrong or how to debug this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48182
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Plugin parameters confusion (e.g. detail)

Post by Jan »

Hi, when there are no error messages in console, really hard to say what can be wrong there, did you try to test it with another template (only to test if there is the same problem)?
If you find Phoca extensions useful, please support the project
Destroy666
Phoca Member
Phoca Member
Posts: 12
Joined: 19 Mar 2024, 11:27

Re: Phoca Gallery Plugin parameters confusion (e.g. detail)

Post by Destroy666 »

Jan wrote: 29 Jun 2024, 01:18 Hi, when there are no error messages in console, really hard to say what can be wrong there, did you try to test it with another template (only to test if there is the same problem)?
Hi, I tested locally now with some downloaded theme and it's the same problem. It works in gallery and not in articles.

I changed some global and plugin configuration for Phoca before it started happening, but I don't recall all the settings I changed. Could that be related somehow? Other than that I don't think I changed anything relevant. What's the version of Photowipe that's being used by this BTW?

One of the differences that I found is that gallery load:

Code: Select all

<script src="/media/com_phocagallery/js/photoswipe/js/photoswipe-initialize.js"></script>
But articles load:

Code: Select all

<script src="/media/com_phocagallery/js/photoswipe/js/photoswipe-initialize-ratio.js?14702047100ba54a38459ab1f7eff748" defer></script>
Is that normal? That doesn't seem right
Destroy666
Phoca Member
Phoca Member
Posts: 12
Joined: 19 Mar 2024, 11:27

Re: Phoca Gallery Plugin parameters confusion (e.g. detail)

Post by Destroy666 »

I think the above is unrelated - got some info from the JS lib author - https://github.com/dimsemenov/PhotoSwip ... nt-9996717 - it's caused because apparantly the mentioned element should be spawned close to document root rather than in last place where the `{phocagallery}` shortcut is added. So it's kind of a bug as it won't work with all templates, for sure.

Although I still don't know why it didn't work with the default one - must be some plugin modifying HTML/CSS. As I don't think anyone modified the article HTML on the website recently, only some animation changes were made.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48182
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Plugin parameters confusion (e.g. detail)

Post by Jan »

Hi,

yes, there are two different initialization scripts (one standard, second better fit to work with ratio of the image).

"the mentioned element should be spawned close to document root rather than in last place where the `{phocagallery}` shortcut is added"

I don't exactly understand this, but Joomla plugin cannot choose where it will be displayed, it is just a part of article.

Try to compare e.g. with: https://www.phoca.cz/demo/phoca-gallery ... mo-masonry where the plugin normally works. :idea:

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