Page 1 of 2

Display category description?

Posted: 13 Jul 2012, 14:07
by Kharlanki
Hi,

maybe I am blind, but I dont find the option to display category description. :x

Thanks!

Re: Display category description?

Posted: 13 Jul 2012, 14:36
by Benno
Hi,
if you mean the Image Description in Category View, go to:
backend --> Components --> Phoca Gallery --> Phoca Gallery Control Center --> Options --> Display --> Category View Settings -->
Display Image Description In Box=Yes
Font Size Of Image Description=(as you like)
Box Height Of Image Description=(depends on Font size and Number of Characters)
Number Of Characters In Image Description=(as you like)
Save & Close

Kind regards,
Benno

Re: Display category description?

Posted: 13 Jul 2012, 14:44
by Kharlanki
No, I mean the category description, which wasnt displayed in first version of Phoca Gallery 3.2.1. ;)
Phoca Gallery -> Categories -> Description

Re: Display category description?

Posted: 13 Jul 2012, 16:32
by Benno
Ok.

Kind regards,
Benno

Re: Display category description?

Posted: 13 Jul 2012, 16:37
by Kharlanki
And where can I now enable it? :)

Re: Display category description?

Posted: 13 Jul 2012, 17:02
by Benno
Hi,
there is nothing to enable.
Just type some description in the Description/Editor of a category, and this description will be displayed in frontend. :idea:

backend:
Image

frontend:
Image

Kind regards,
Benno

Re: Display category description?

Posted: 13 Jul 2012, 17:12
by Kharlanki
I added a description, but it didnt show up.
I edited the code in /components/com_phocagallery/views/category/tmpl/default.php line 35ff

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 'Desc';
	echo JHTML::_('content.prepare', $this->category->description)
	.'</div>'. "\n";
}
But no "Desc" is being displayed.

Re: Display category description?

Posted: 13 Jul 2012, 17:28
by Benno
Hi,
don't know why you change code. It's not necessary because it works out of the box as I described.
Do you use the joomla! standard editor "TinyMCE"?

Kind regards,
Benno

Re: Display category description?

Posted: 13 Jul 2012, 19:18
by Kharlanki
viewtopic.php?f=1&t=20351&p=77995&hilit ... ion#p77986

I wanted to know if the version I installed was the early or the late version 3.2.1. The missing "echo 'Desc'" says to me that there is an option which I have to enable...

I tried with TinyMCE and with JCE. No difference.

Re: Display category description?

Posted: 13 Jul 2012, 19:45
by Benno
Hi,
this is fixed in the current version.
http://joomlacode.org/gf/download/frsre ... v3.2.1.zip
If you are not sure which version you are running, just upgrade to this version.

Kind regards,
Benno