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
Category description in category view
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category description in category view
Hi, which version of Phoca Gallery you are using?
If you find Phoca extensions useful, please support the project
-
lifeisshort
- Phoca Newbie

- Posts: 2
- Joined: 04 Sep 2013, 20:00
Re: Category description in category view
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
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category description in category view
If you find Phoca extensions useful, please support the project
-
thaflo
- Phoca Newbie

- Posts: 9
- Joined: 25 Aug 2013, 11:35
Re: Category description in category view
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
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
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category description in category view
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 
If you find Phoca extensions useful, please support the project
-
thaflo
- Phoca Newbie

- Posts: 9
- Joined: 25 Aug 2013, 11:35
Re: Category description in category view
Hi Jan,
tried the templates "Beez 5" and Atomic, always with the same result.
tried the templates "Beez 5" and Atomic, always with the same result.
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category description in category view
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) 
If you find Phoca extensions useful, please support the project
-
thaflo
- Phoca Newbie

- Posts: 9
- Joined: 25 Aug 2013, 11:35
Re: Category description in category view
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:
But if I uncomment the // line the whole page remains white.
Thanks,
Florian
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";
Thanks,
Florian
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category description in category view
Hi,
if you uncomment:
you will get fatal error, as the ; is missing, it should be:
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
if you uncomment:
Code: Select all
//echo $this->category->descriptionCode: Select all
echo $this->category->description;echo JHTML::_('content.prepare', $this->category->description) is the same like above, it only adds support for plugins.
Jan
If you find Phoca extensions useful, please support the project