Displaying category title in the PGIM

Phoca Gallery modules - modules for Phoca Gallery extension
dishpak
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 15 Apr 2015, 22:29

Displaying category title in the PGIM

Post by dishpak »

Hi!
I'm using Phoca gallery image module, module link is set to category view. And I need to display category title instead of image title (or even in other place) in my module. Like it's done when using the component, but it doesn't fits to my site, so I can use only module.
Tryed to copy this to mod_phocagallery_image.php:

Code: Select all

// Category Name Title
if ( $this->tmpl['display_cat_name_title'] == 1) {
	if (isset($this->category->title) && $this->category->title != '') {
		if ($heading != '') {
			$heading .= ' - ';
		}
		$heading .= $this->category->title;
	}
}
but it doesn't work (I am too poor in programming).
Hope You can help!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Displaying category title in the PGIM

Post by Jan »

Hi, first you need to test which variables you get in image module, in which variable is the category title set, etc.

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