bug : show_page_title should be show_page_heading

Phoca Gallery - image gallery extension
User avatar
bcraigie
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Apr 2011, 03:20

bug : show_page_title should be show_page_heading

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: bug : show_page_title should be show_page_heading

Post by Jan »

Hi, thank your for this info, this is fixed in RC5 (the titles get H1 tag)

Jan
If you find Phoca extensions useful, please support the project
Post Reply