Page 1 of 1

Name of category in categories view and category view

Posted: 30 Jun 2020, 11:48
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

Re: Name of category in categories view and category view

Posted: 30 Jun 2020, 13:24
by christine
Hi,

try this:

Code: Select all

.pg-csv-name {
pointer-events: none;
}
Kind regards
Christine

Re: Name of category in categories view and category view

Posted: 30 Jun 2020, 14:43
by Kordian
Maybe not what I expected, but is working. Thank you

Re: Name of category in categories view and category view

Posted: 30 Jun 2020, 15:13
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

Re: Name of category in categories view and category view

Posted: 30 Jun 2020, 18:40
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

Re: Name of category in categories view and category view

Posted: 03 Jul 2020, 12:01
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

Re: Name of category in categories view and category view

Posted: 03 Jul 2020, 14:42
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

Re: Name of category in categories view and category view

Posted: 04 Jul 2020, 13:09
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