Page 1 of 1

Header - Category Name / Site Name

Posted: 08 Jun 2009, 15:43
by SC-NonvisioN
Hey guys,

i have one question - for our website i try to make a new Phoca Gallery Category/Site design.
My problem is this:

i have

Code: Select all

<h1>NAME OF THE PAGE/CATEGORY</h1>
now i need to get on all pages the name of the categorys/the sitenames.
What do i need to write in there to get them?

best regards
SC

Re: Header - Category Name / Site Name

Posted: 09 Jun 2009, 14:23
by SC-NonvisioN
thx jan ;)

Code: Select all

      <h1><?php
// Heading
$heading = '';
if ($this->params->get( 'page_title' ) != '') {
	$heading .= $this->params->get( 'page_title' );
}
if ( $this->tmpl['displaycatnametitle'] == 1) {
	if ($this->category->title != '') {
		if ($heading != '') {
			$heading .= ' - ';
		}
		$heading .= $this->category->title;
	}
}

// Pagetitle
if ($this->tmpl['showpagetitle'] != 0) {
	if ( $heading != '') {
	    echo '<div class="componentheading'.$this->params->get( 'pageclass_sfx' ).'">'
	        .$heading
			.'</div>';
	} 
}
?>
      </h1>