Page 1 of 1

Displaying category title in the PGIM

Posted: 15 Apr 2015, 22:41
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!

Re: Displaying category title in the PGIM

Posted: 16 Apr 2015, 01:05
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