Category description in category view

Phoca Gallery - image gallery extension
thaflo
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 25 Aug 2013, 11:35

Category description in category view

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category description in category view

Post by Jan »

Hi, which version of Phoca Gallery you are using?
If you find Phoca extensions useful, please support the project
lifeisshort
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 04 Sep 2013, 20:00

Re: Category description in category view

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category description in category view

Post by Jan »

Hi, then just enable it in Options.
https://www.phoca.cz/documents/2-phoca-g ... e-joomla-3
Jan
If you find Phoca extensions useful, please support the project
thaflo
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 25 Aug 2013, 11:35

Re: Category description in category view

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category description in category view

Post 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 :idea:
If you find Phoca extensions useful, please support the project
thaflo
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 25 Aug 2013, 11:35

Re: Category description in category view

Post by thaflo »

Hi Jan,

tried the templates "Beez 5" and Atomic, always with the same result. :idea:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category description in category view

Post 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) :idea:
If you find Phoca extensions useful, please support the project
thaflo
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 25 Aug 2013, 11:35

Re: Category description in category view

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category description in category view

Post 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
If you find Phoca extensions useful, please support the project
Post Reply