Page 1 of 1

How Adding a Title to the Categories View?

Posted: 29 Oct 2012, 14:20
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.

Re: How Adding a Title to the Categories View?

Posted: 31 Oct 2012, 13:53
by Jan
Hi, you can set it in menu link parameters.

Jan

Re: How Adding a Title to the Categories View?

Posted: 31 Oct 2012, 17:22
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.

Re: How Adding a Title to the Categories View?

Posted: 31 Oct 2012, 22:34
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