How Adding a Title to the Categories View?

Phoca Gallery - image gallery extension
itcysca
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 Oct 2012, 14:16

How Adding a Title to the Categories View?

Post by itcysca »

Hello.

I have one link to the categories view of my all pictures and look like a normal pagination but isnt have a title, how a add a title or intro text into top of my categories view.

Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How Adding a Title to the Categories View?

Post by Jan »

Hi, you can set it in menu link parameters.

Jan
If you find Phoca extensions useful, please support the project
itcysca
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 Oct 2012, 14:16

Re: How Adding a Title to the Categories View?

Post by itcysca »

Hi Jan Thanks for your responde but into the link paremetes have a title show but is for show the title in the browser window and not into the page, please correct me if i am wrong.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How Adding a Title to the Categories View?

Post by Jan »

Hi, this is the code for displaying the title:

Code: Select all

// Heading
$heading = '';
if ($this->params->get( 'page_heading' ) != '') {
	$heading .= $this->params->get( 'page_heading' );
}
// Category Name Title
if ( $this->tmpl['displaycatnametitle'] == 1) {
	if (isset($this->category->title) && $this->category->title != '') {
		if ($heading != '') {
			$heading .= ' - ';
		}
		$heading .= $this->category->title;
	}
}
// Pagetitle
if ($this->tmpl['showpageheading'] != 0) {
	if ( $heading != '') {
		echo '<h1>'. $this->escape($heading) . '</h1>';
	} 
}
It can be standard heading plus Category name

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