Page 1 of 1

bug : show_page_title should be show_page_heading

Posted: 28 Apr 2011, 03:36
by bcraigie
Hi and thanks for an excellent product.

I found that I was unable to turn off the heading at the top of a category (image) view. This heading is by default, the same as the menu item, and should be possible to turn on or off by toggling the "Show Page Heading" radio button in the Page Display Options section of the menu entry.

After checking the source code, I found the lines:

if ( $this->params->def( 'show_page_title', 1 ) ) {
echo '<div class="componentheading'.$this->params->get( 'pageclass_sfx' ).'">'.$this->params->get('page_title').'</div>';
}

(and there were others)

but with Joomla 1.6.3, the parameter is called show_page_heading, not show_page_title

So I replaced (global search and replace) all the ocurrences I found in the components/com_phocagallery folder and it fixed the problem.

The files I edited inside that folder are:

views/categories/tmpl/default_map.php
views/category/view.html.php
views/cooliris3dwall/view.html.php
views/user/view.html.php

Hope that helps.

Brian

Re: bug : show_page_title should be show_page_heading

Posted: 30 Apr 2011, 00:49
by Jan
Hi, thank your for this info, this is fixed in RC5 (the titles get H1 tag)

Jan