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
Category description not visible J3.3.1 PhocaGuestbook 3.0.2
-
- Phoca Member
- Posts: 14
- Joined: 23 Jul 2014, 10:10
- Jan
- Phoca Hero
- Posts: 48299
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category description not visible J3.3.1 PhocaGuestbook 3
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:
to:
Thank you, Jan
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;
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;
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 14
- Joined: 23 Jul 2014, 10:10
Re: Category description not visible J3.3.1 PhocaGuestbook 3
Thank you! Jeroen
- Jan
- Phoca Hero
- Posts: 48299
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category description not visible J3.3.1 PhocaGuestbook 3
Ok
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48299
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category description not visible J3.3.1 PhocaGuestbook 3
Hi, set in 3.0.3
Thank you, Jan
Thank you, Jan
If you find Phoca extensions useful, please support the project