category view

Phoca Gallery - image gallery extension
gabriela
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 12 Jan 2011, 11:19

category view

Post by gabriela »

hi there,

on the list of sub categories in category view I would like to display the description of the respective category
it should look somewhat like this:

<a>some category title</a>
some category description

I tried getting there by adjusting in ../views/category/tmpl/default.php:

Code: Select all

// subfolder
if ($value->type == 1) {
	if ($value->displayname == 1 || $value->displayname == 2) {
		echo '<div class="phocaname" style="font-size:'.$this->tmpl['fontsizename'].'px">'
		.PhocaGalleryText::wordDelete($value->title, $this->tmpl['charlengthname'], '...').'</div>';
	}
}
for:

Code: Select all

// subfolder
if ($value->type == 1) {
	if ($value->displayname == 1 || $value->displayname == 2) {
		echo '<div class="phocaname" style="font-size:'.$this->tmpl['fontsizename'].'px">'
		.PhocaGalleryText::wordDelete($value->title, $this->tmpl['charlengthname'], '...').'</div>';
	}
	echo '<br />'.$value->description;
}
however there is neither an error showing up nor would the description be displayed. only the br tag is showing in firebug. would you mind a hint on what I'm overlooking please ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: category view

Post by Jan »

Hi, do you have enabled php error reporting?
https://www.phoca.cz/documents/16-joomla ... rs-on-site

Jan
If you find Phoca extensions useful, please support the project
Post Reply