With 3.2 the category description is show but with 3.2.1 nothing is displayed ????
If you can help me
Best regards
[SOLVED] Phoca 3.2.1 & Joomla 2.5.6 no category description
-
meditant
- Phoca Newbie

- Posts: 4
- Joined: 14 Mar 2012, 12:58
[SOLVED] Phoca 3.2.1 & Joomla 2.5.6 no category description
Last edited by meditant on 06 Jul 2012, 13:46, edited 1 time in total.
-
meditant
- Phoca Newbie

- Posts: 4
- Joined: 14 Mar 2012, 12:58
Re: Phoca 3.2.1 and Joomla 2.5.6 no category description dis
when i modify in /components/com_phocagallery/views/category/tmpl/default.php this line 36 :
// Category Description
/* if (isset($this->category->description) && $this->category->description != '' ) {*/
echo '<div class="pg-category-view-desc'.$this->params->get( 'pageclass_sfx' ).'">';
echo 'Desc';
echo $this->category->description
//echo JHTML::_('content.prepare', $this->category->description)
.'</div>'. "\n";
/*}*/
it show "Desc" if i uncomment the if test it show nothing like the description files is empty but is not empty ????
// Category Description
/* if (isset($this->category->description) && $this->category->description != '' ) {*/
echo '<div class="pg-category-view-desc'.$this->params->get( 'pageclass_sfx' ).'">';
echo 'Desc';
echo $this->category->description
//echo JHTML::_('content.prepare', $this->category->description)
.'</div>'. "\n";
/*}*/
it show "Desc" if i uncomment the if test it show nothing like the description files is empty but is not empty ????
-
reko
- Phoca Professional

- Posts: 407
- Joined: 29 Dec 2008, 22:06
Re: Phoca 3.2.1 and Joomla 2.5.6 no category description dis
Hi Jan,
i can confirm this bug report. after update from 3.2.0 to 3.2.1 the category description is gone (in category view - it is displayed correctly in categories view, if set to so)
regards,
rk
i can confirm this bug report. after update from 3.2.0 to 3.2.1 the category description is gone (in category view - it is displayed correctly in categories view, if set to so)
regards,
rk
-
meditant
- Phoca Newbie

- Posts: 4
- Joined: 14 Mar 2012, 12:58
Re: Phoca 3.2.1 and Joomla 2.5.6 no category description dis
I find the bug !
A little missing field in sql query. The field "description" is missing in file /components/com_phocagallery/models/category.php
Change line 204 :
$query = 'SELECT c.id, c.title, c.alias, c.published, c.approved, c.parent_id, c.deleteuserid, c.accessuserid, c.uploaduserid, c.access,' .
with :
$query = 'SELECT c.id, c.title, c.alias, c.description, c.published, c.approved, c.parent_id, c.deleteuserid, c.accessuserid, c.uploaduserid, c.access,' .
It is a little fix before the correction.
Best regards
A little missing field in sql query. The field "description" is missing in file /components/com_phocagallery/models/category.php
Change line 204 :
$query = 'SELECT c.id, c.title, c.alias, c.published, c.approved, c.parent_id, c.deleteuserid, c.accessuserid, c.uploaduserid, c.access,' .
with :
$query = 'SELECT c.id, c.title, c.alias, c.description, c.published, c.approved, c.parent_id, c.deleteuserid, c.accessuserid, c.uploaduserid, c.access,' .
It is a little fix before the correction.
Best regards
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [SOLVED] Phoca 3.2.1 & Joomla 2.5.6 no category descript
Hi, thank you very much for the info. In 3.2.1 the SQL queries were optimized.
I will fix it for the next version.
Thank you, Jan
I will fix it for the next version.
Thank you, Jan
If you find Phoca extensions useful, please support the project
-
jbx
- Phoca Enthusiast

- Posts: 66
- Joined: 19 Apr 2009, 19:18
Re: [SOLVED] Phoca 3.2.1 & Joomla 2.5.6 no category descript
Thank you so very much for this fix! I was losing my mind for the past 3 hours!
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [SOLVED] Phoca 3.2.1 & Joomla 2.5.6 no category descript
Ok, made a quickfix in the same version: Phoca Gallery 3.2.1 from 2012/07/09 includes this fix and can be downloaded here:
https://www.phoca.cz/download/category/1 ... -component
Jan
https://www.phoca.cz/download/category/1 ... -component
Jan
If you find Phoca extensions useful, please support the project