Page 1 of 2
Category description in category view
Posted: 25 Aug 2013, 11:41
by thaflo
Hi all,
first, thank you for the Phoca Gallery, a very usuable Gallery component...
Although I read a lot of forum posts and help documentations, i didn't find how to show the category description on the Category view page:
Below the name of the Category there should be shown the description of the category.
In the "Categories View" it works, but there I don't have the nice box.
Does anyone have a solution for me?
Regards,
Florian
Re: Category description in category view
Posted: 29 Aug 2013, 14:29
by Jan
Hi, which version of Phoca Gallery you are using?
Re: Category description in category view
Posted: 04 Sep 2013, 20:03
by lifeisshort
I have the same problem, i am using phoca gallery 4.0.2 and i need to show category description in Category view. Everything else is working fine. Thanx
Re: Category description in category view
Posted: 06 Sep 2013, 14:18
by Jan
Re: Category description in category view
Posted: 18 Sep 2013, 16:56
by thaflo
Hi,
thanks Jan for the response, I am running Joomla 2.5.
The page looks like:
http://badmintonmals.it/index.php/fotos ... leryphotos
So the date info is the name of the category, and under this line I would like to see the category description I entered in the text field on the category admin page.
I tried nearly all options, but didn't find the solution I searched for.
Thanks,
Florian
Re: Category description in category view
Posted: 20 Sep 2013, 19:07
by Jan
Hi, do you get the same problem with standard template? I am testing it now and see no problem, the category description is normally displayed above the images

Re: Category description in category view
Posted: 20 Sep 2013, 20:26
by thaflo
Hi Jan,
tried the templates "Beez 5" and Atomic, always with the same result.

Re: Category description in category view
Posted: 21 Sep 2013, 00:15
by Jan
Then really no idea what can be wrong there, this is standard feature, looking at the code and see no problem, try to disable cache and clear it (when it was on)

Re: Category description in category view
Posted: 23 Sep 2013, 20:20
by thaflo
Hi Jan,
am I right that the code which is responsible for this is in:
:::/components/com_phocagallery/views/category/tmpl/default.php ?
There is a part on line 33 like:
Code: Select all
// Category Description
if (isset($this->category->description) && $this->category->description != '' ) {
echo '<div class="pg-category-view-desc'.$this->params->get( 'pageclass_sfx' ).'">';
//echo $this->category->description
echo JHTML::_('content.prepare', $this->category->description)
.'</div>'. "\n";
But if I uncomment the // line the whole page remains white.
Thanks,
Florian
Re: Category description in category view
Posted: 23 Sep 2013, 22:29
by Jan
Hi,
if you uncomment:
Code: Select all
//echo $this->category->description
you will get fatal error, as the ; is missing, it should be:
Code: Select all
echo $this->category->description;
But if you uncomment it, you will get (normally) two descriptions, because this:
echo JHTML::_('content.prepare', $this->category->description) is the same like above, it only adds support for plugins.
Jan