Jan wrote:Hi, this needs to be customized in the code.
Description is loaded in category view so it can be easily done.
In \components\com_phocagallery\views\category\tmpl\default.php
you should find the place where you want to add your description and add e.g. there:
echo $value->description
if you want it will be cut, you can use Phoca Gallery Method:
echo PhocaGalleryText::wordDelete($value->description, 250, '...');
the second parameter is number of characters, the third parameter is end character
Jan
Jan,
Thank you!!! It worked perfectly.
Just to make sure I did it correctly, I changed this...
Code: Select all
if ($value->type == 2) {
if ($value->displayname == 1) {
echo '<div class="phocaname" style="font-size:'.$this->tmpl['fontsizename'].'px">'
.PhocaGalleryText::wordDelete($value->title, $this->tmpl['charlengthname'], '...').'</div>';
}
if ($value->displayname == 2) {
echo '<div class="phocaname" style="font-size:'.$this->tmpl['fontsizename'].'px"> </div>';
}
}
to this...
Code: Select all
if ($value->type == 2) {
if ($value->displayname == 1) {
echo '<div class="phocaname" style="font-size:'.$this->tmpl['fontsizename'].'px">'
.PhocaGalleryText::wordDelete($value->title, $this->tmpl['charlengthname'], '...').'</div>';
echo PhocaGalleryText::wordDelete($value->description, 250, '...');
}
if ($value->displayname == 2) {
echo '<div class="phocaname" style="font-size:'.$this->tmpl['fontsizename'].'px"> </div>';
}
}
Everything look good?