Phoca Gallery background image problem

Phoca Gallery - image gallery extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48343
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery background image problem

Post by Jan »

Hi,

1) maybe I don't fully understand, but I don't know any feature in Phoca Gallery which can somehow change background image as Phoca Gallery just cannot change template (Phoca Gallery is a component inside Joomla - inside template)

2) Are you really sure, the parent category ID has direct subcategories? I am testing it now and everything is OK there :idea:

Jan
If you find Phoca extensions useful, please support the project
Kordian
Phoca Enthusiast
Phoca Enthusiast
Posts: 72
Joined: 20 Oct 2011, 16:37

Re: Phoca Gallery background image problem

Post by Kordian »

Hi,
ad. 1. Well, visit my page, select Nature menu and enjoy Phoca changing the address from "nature" to "landscapes" while browsing any category. Joomla does not do it. It is the Phoca component only.
ad. 2. I can gladly give you access to my backend. Here some screenshots:
Image
Image
From the last screenshot you can see, the Birds category is ID 190.
If I now write "190" in the Nature menu item options, all categoties will be gone.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48343
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery background image problem

Post by Jan »

Hi, can you paste here the link to the page where the background is changing? I cannot see it on test pages.
If you find Phoca extensions useful, please support the project
christine
Phoca Hero
Phoca Hero
Posts: 2808
Joined: 28 Nov 2010, 17:20

Re: Phoca Gallery background image problem

Post by christine »

Jan:

Kordian has changed the template and is probably in progress:
https://test.aquila-it.pl/index.php/test1

At the moment there is no background image (page class suffix)

Kind regards
Christine
Kordian
Phoca Enthusiast
Phoca Enthusiast
Posts: 72
Joined: 20 Oct 2011, 16:37

Re: Phoca Gallery background image problem

Post by Kordian »

Hello, yes, I am reinstalling it all.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48343
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery background image problem

Post by Jan »

Ok, but still it will be great to know which way is used for having different background image, as I know this is not a Phoca Gallery feature. :idea:

Jan
If you find Phoca extensions useful, please support the project
Kordian
Phoca Enthusiast
Phoca Enthusiast
Posts: 72
Joined: 20 Oct 2011, 16:37

Re: Phoca Gallery background image problem

Post by Kordian »

OK, I am ready...
Check https://galeria.aquila-it.pl/index.php/en/nature
The story is: as long as there is only one menu item of type Phoca Gallery List of categories - here with the name "Nature", when you move cursor over any category, the address stays ok and contains "nature", so here if you move the cursor over the first category, you get:
galeria.aquila-it.pl/index.php/en/NATURE/947-nature/183-fungi
But
If I publish another menu item of type Phoca Gallery List of categories - and call it "Landscape", the address of the categories of the "Nature" menu will change to:
galeria.aquila-it.pl/index.php/en/LANDSCAPE/947-nature/183-fungi

If I further create a new menu item Phoca Gallery List of categories and give it any name, for example "Stupid", the address within Nature category will change to:
galeria.aquila-it.pl/index.php/en/STUPID/947-nature/183-fungi

If I change the menu item from Phoca Gallery List of categories to, let's say, joomla articles, the address will change back to:
galeria.aquila-it.pl/index.php/en/LANDSCAPE/947-nature/183-fungi

That is the current state.

Help!!!
:-)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48343
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery background image problem

Post by Jan »

Hi, regarding URL SEF, as I wrote, see may advice: https://www.phoca.cz/blog/1230-how-to-c ... -in-joomla

Unfortunately, I am not the author or Joomla SEF URL feature, so I can only add advice written in the link listed above. If more different menu links are used, then the system has problems with detecting which URL to use. :idea:

Jan
If you find Phoca extensions useful, please support the project
Kordian
Phoca Enthusiast
Phoca Enthusiast
Posts: 72
Joined: 20 Oct 2011, 16:37

Re: Phoca Gallery background image problem

Post by Kordian »

Jan, I am sorry, but this has nothing to do with sef. It is your PG component, that somehow does not allow multiple Category List menu items. When multiple menu items are created, Phoca Gallery takes the one with the highest ID as the address. Has nothing to do with joomla,as if it was joomla, would be the same with other menu items as well.
Besides, joomla 4 does not use sef anymore. So maybe, as my system is an upgrade, there is something old causing this problem, might well be.
I am aware your product is free and I have no right to require any help, but some 8-10 years ago this problem would have been solved by Phoca people within 1-2 days.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48343
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery background image problem

Post by Jan »

Hi, in case, this is the Phoca Gallery issue, then of course I am able to change the code but I need to know where exactly is the problem.

This file:
components/com_phocagallery/router.php
is the router build based on Joomla routers
and this file:
administrator/components/com_phocagallery/libraries/phocagallery/path/route.php
is the file for creating menu links. As you can see in this file, there are a lot of commented code which when you will test different combinations it can e.g. work in your case but all commented code is commented because it caused different link problems. So even if you will find some solution for you (with uncommenting the code), you will still get problems on different places :-(

The problem which came with Joomla 4 SEF is, you don't have any help strings in url like "category", "detail", etc. so you get only aliases strings and the system needs to somehow guess which view it is (category, categories or detail). In such case then you get such problems with more menu links as you cannot identify the correct one.

And I will repeat it again. Unfortunately, I am not the developer of Joomla SEF and if such SEF solution does only support core and not external extensions, it is really hard to somehow correct the core function (as you can see in these files, different solutions, different hacks, etc. were tested in time, but mostly ended with another problem on another place :-( )

But of course if some final working solution will be found, I will be the first to test it (so it is not in conflict with other parts) and implement it.

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