Category description not visible J3.3.1 PhocaGuestbook 3.0.2

jeroenh
Phoca Member
Phoca Member
Posts: 14
Joined: 23 Jul 2014, 10:10

Category description not visible J3.3.1 PhocaGuestbook 3.0.2

Post by jeroenh »

Hello,

If I add a description to a Phoca Guestbook category the category description isn't visible on the frontpage.
But if I go to the menu link for the guestbook in the backend and then the tab [Page Display] and set the "Show Page Heading" to "Yes" the description becomes visible but also the Page Heading (title) which I don't want to see and it shouldn't become visible.

To test the bug
I've switched to a default Joomla template to check if it has anything to do with my template but this also happens with a default Joomla template.
I've also made a Joomla blog link and filled the category description and that description is visible while "Show Page Heading" is set to "No".

Jeroen
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category description not visible J3.3.1 PhocaGuestbook 3

Post by Jan »

Hi, you right - thank you very much for your info, I will fix it in the next version.

Quick fix:
Open this file in text editor:
components/com_phocaguestbook/views/guestbook/tmpl/default.php

and change from:

Code: Select all

// - - - - - - - - - - -
// Header
// - - - - - - - - - - -
if ( $this->params->get( 'show_page_heading' ) ) : ?>
	<div class="page-header">
		<h1>
			<?php echo $this->escape($this->params->get('page_heading')); ?>
		</h1>
	</div>
<?php 
	//image not supported yet -> add "image" to xml file
	if ( @$this->image || @$this->guestbooks->description ) : ?>
	<div class="well pgb_background guestbook-description">
	<?php
	/*if ( isset($this->tmpl['image']) ) {
		echo $this->tmpl['image'];
	}*/
	echo $this->guestbooks->description;
	?>
	</div>
<?php endif; endif;
to:

Code: Select all

// - - - - - - - - - - -
// Header
// - - - - - - - - - - -
if ( $this->params->get( 'show_page_heading' ) ) : ?>
	<div class="page-header">
		<h1>
			<?php echo $this->escape($this->params->get('page_heading')); ?>
		</h1>
	</div>
<?php endif;
	//image not supported yet -> add "image" to xml file
	if ( @$this->image || @$this->guestbooks->description ) : ?>
	<div class="well pgb_background guestbook-description">
	<?php
	/*if ( isset($this->tmpl['image']) ) {
		echo $this->tmpl['image'];
	}*/
	echo $this->guestbooks->description;
	?>
	</div>
<?php endif;
Thank you, Jan
If you find Phoca extensions useful, please support the project
jeroenh
Phoca Member
Phoca Member
Posts: 14
Joined: 23 Jul 2014, 10:10

Re: Category description not visible J3.3.1 PhocaGuestbook 3

Post by jeroenh »

Thank you! Jeroen
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category description not visible J3.3.1 PhocaGuestbook 3

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category description not visible J3.3.1 PhocaGuestbook 3

Post by Jan »

Hi, set in 3.0.3

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