Display parent category names

Phoca Gallery plugins - plugins for Phoca Gallery extension
Tom
Phoca Member
Phoca Member
Posts: 24
Joined: 22 Dec 2014, 19:05

Display parent category names

Post by Tom »

Hello,

The Phoca Gallery Plugin displays the parent category names in an article, in the old Version 2.8.1 it was not displaying.

How can I change?

Here you can see

My Code

Code: Select all

{phocagallery view=categories|categoryid=3|imagecategories=1|imagecategoriessize=5}
Tom
Last edited by Tom on 03 Jan 2015, 14:59, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48041
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display parent category names

Post by Jan »

Hi, I get 404 on that site :idea:

Not sure where exactly is displayed parent category name :idea:

Jan
If you find Phoca extensions useful, please support the project
Tom
Phoca Member
Phoca Member
Posts: 24
Joined: 22 Dec 2014, 19:05

Re: Display parent category names

Post by Tom »

Oh, sorry i have changed my site.

Now you can see the link

The parent category name is "alte zeiten". this should not displaying

Tom
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48041
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display parent category names

Post by Jan »

Hmm, this needs to be customized directly in the plugin, as the plugin get the whole tree from the component. But this in fact needs to be hardcoded.

e.g. to remove the string from the output: $the_new_string = str_replace('alte Zeiten - ', '', $the_output_string);

:idea:

Jan
If you find Phoca extensions useful, please support the project
Tom
Phoca Member
Phoca Member
Posts: 24
Joined: 22 Dec 2014, 19:05

Re: Display parent category names

Post by Tom »

Ok, but in the old Version 2.8.1 it was not displaying.
Jan wrote: e.g. to remove the string from the output: $the_new_string = str_replace('alte Zeiten - ', '', $the_output_string);
which file i must change?

Tom
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48041
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display parent category names

Post by Jan »

Hi, directly the plugin:

plugins/content/phocagallery/phocagallery.php :idea:

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