Site name appears on page as componentheading

Phoca Download - download manager
Kathe
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 06 Feb 2008, 22:09
Location: United States of America
Contact:

Site name appears on page as componentheading

Post by Kathe »

I love this component -- it is just right. :| :twisted:

I have one little thing. At the top of the downloads page, the site name is displayed. It is being given the componentheading class. Is there a way to hide that, or a way to specify a page title?

:idea:

I thought about setting a page title using the menu item's parameters(system) but that seems to have no effect.

Editing to add link to image that shows what I'm talking about. Circled in blue is the site name. I don't want it to appear on the page but it is being automatically generated somehow.
http://www.katwebdesign.com/images/site ... _title.jpg

Thanks for any ideas you may have!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Site name appears on page as componentheading

Post by Jan »

Hi, did you check the hiding it in parameters basic or system. This should work normally, see:

Code: Select all

if ( $this->params->def( 'show_page_title', 1 ) ) {
	echo '<div class="componentheading'. $this->params->get( 'pageclass_sfx' ).'">'
	    . $this->params->get('page_title')
	    . '</div>';
}
Jan
If you find Phoca extensions useful, please support the project
mizu
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 22 Apr 2010, 06:04

Re: Site name appears on page as componentheading

Post by mizu »

If total hiding is no option, as it is in my case, consider this one:
components\com_phocagallery\views\category\tmpl

Code: Select all

// Pagetitle
if ($this->tmpl['showpagetitle'] != 0) {
	if ( $heading != '') {
		echo '<div class="componentheading'.$this->params->get( 'pageclass_sfx' ).'">';
	    echo $this->category->title;
		echo '</div>';
	} 
}
not the smartest solution, but I keep it until someone comes up with a better one.
Post Reply