Display category description?

Phoca Gallery - image gallery extension
Kharlanki
Phoca Member
Phoca Member
Posts: 19
Joined: 02 Aug 2010, 14:48

Display category description?

Post by Kharlanki »

Hi,

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

Thanks!
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9974
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Display category description?

Post 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
Kharlanki
Phoca Member
Phoca Member
Posts: 19
Joined: 02 Aug 2010, 14:48

Re: Display category description?

Post by Kharlanki »

No, I mean the category description, which wasnt displayed in first version of Phoca Gallery 3.2.1. ;)
Phoca Gallery -> Categories -> Description
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9974
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Display category description?

Post by Benno »

Ok.

Kind regards,
Benno
Kharlanki
Phoca Member
Phoca Member
Posts: 19
Joined: 02 Aug 2010, 14:48

Re: Display category description?

Post by Kharlanki »

And where can I now enable it? :)
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9974
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Display category description?

Post 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
Kharlanki
Phoca Member
Phoca Member
Posts: 19
Joined: 02 Aug 2010, 14:48

Re: Display category description?

Post 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.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9974
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Display category description?

Post 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
Kharlanki
Phoca Member
Phoca Member
Posts: 19
Joined: 02 Aug 2010, 14:48

Re: Display category description?

Post 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.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9974
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Display category description?

Post 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
Post Reply