Header - Category Name / Site Name

Phoca Templates - templates for Joomla! CMS
SC-NonvisioN
Phoca Member
Phoca Member
Posts: 11
Joined: 08 Jun 2009, 15:40
Location: Germany | Trier
Contact:

Header - Category Name / Site Name

Post 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
SC-NonvisioN
Phoca Member
Phoca Member
Posts: 11
Joined: 08 Jun 2009, 15:40
Location: Germany | Trier
Contact:

Re: Header - Category Name / Site Name

Post 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>
Post Reply