Page 1 of 1

Site name appears on page as componentheading

Posted: 28 Jul 2010, 20:22
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!

Re: Site name appears on page as componentheading

Posted: 31 Jul 2010, 15:37
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

Re: Site name appears on page as componentheading

Posted: 21 Aug 2010, 10:11
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.