Name of category in categories view and category view

Phoca Gallery - image gallery extension
Kordian
Phoca Enthusiast
Phoca Enthusiast
Posts: 68
Joined: 20 Oct 2011, 16:37

Name of category in categories view and category view

Post by Kordian »

Hi,
I am trying to customize the PG.
In "categories view" the name of a category is treated as a link.
In "category view" the name of a category is not treated as link anymore, but as a normal text.
I want to achieve the same in both views - that name is NOT a link, so the same as for the "category view".
Where can I change it?
Thanks in advance!
Regards
christine
Phoca Hero
Phoca Hero
Posts: 2723
Joined: 28 Nov 2010, 17:20

Re: Name of category in categories view and category view

Post by christine »

Hi,

try this:

Code: Select all

.pg-csv-name {
pointer-events: none;
}
Kind regards
Christine
Kordian
Phoca Enthusiast
Phoca Enthusiast
Posts: 68
Joined: 20 Oct 2011, 16:37

Re: Name of category in categories view and category view

Post by Kordian »

Maybe not what I expected, but is working. Thank you
christine
Phoca Hero
Phoca Hero
Posts: 2723
Joined: 28 Nov 2010, 17:20

Re: Name of category in categories view and category view

Post by christine »

Hi,
Kordian wrote: 30 Jun 2020, 14:43 Maybe not what I expected, but is working. Thank you
You wrote:
I want to achieve the same in both views - that name is NOT a link, so the same as for the "category view".
With above code the categories name is not klickable. What did you expect instead?

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

Re: Name of category in categories view and category view

Post by Kordian »

Well, what I expected was that someone would point me to the place where the name of the category in the categories view is configured as link.
And generally explain the idea where the same thing on one occasion is a link, but on another not. Does not make sense to me. :-)
Regards
Kordian
Phoca Enthusiast
Phoca Enthusiast
Posts: 68
Joined: 20 Oct 2011, 16:37

Re: Name of category in categories view and category view

Post by Kordian »

The reason is also that if I leave it like that, the name of category will still be in the color of the visited link from the site. I also want to change the font color to be the standard font color, and if I use
a {
}
in the custom css, with the !important option, then all link colours on the whole page will be changed.
Regards
christine
Phoca Hero
Phoca Hero
Posts: 2723
Joined: 28 Nov 2010, 17:20

Re: Name of category in categories view and category view

Post by christine »

Hi,
Kordian wrote: 03 Jul 2020, 12:01 and if I use
a {
}
in the custom css, with the !important option, then all link colours on the whole page will be changed.
of course, as it's for all "a" link.

You should use explicit the required segment, e.g.:

Code: Select all

.pg-csv-name a {
color:blue;
}
Kind regards
Christine
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Name of category in categories view and category view

Post by Jan »

Hi,

you can change it per template override, the link in categories view:

components\com_phocagallery\views\categories\tmpl\default_categories.php

the title in category view:

components\com_phocagallery\views\category\tmpl\default_images.php

In categories view, there is always a link to category but in category view, you can disable displaying of detail of an image, so there is not always a link to image view (detail view with no popup), this is the difference why categories view has a link and category view not.

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