Page 1 of 1

Text breaks not working in description in category view

Posted: 08 Dec 2010, 23:03
by hopekiah
HI,
I searched for text breaks, text wrap and break tag in the forum and the manual to no avail, so here's my issue. Check out this page http://66.147.244.165/~burnini2/index.p ... &Itemid=58. The text breaks or paragraph tags which I added to the description in the back-end don't translate in the front-end description.
Thanks,
Hope

Re: Text breaks not working in description in category view

Posted: 14 Dec 2010, 15:10
by Jan
Hi, the description is without html tags below the thumbnails, e.g. because it can be cut by parameters (then e.g. the tags will be not closed)

you can modify it here:

components\com_phocagallery\views\category\tmpl\default.php

cca line 519

remove the strip_tags function.

Jan

Re: Text breaks not working in description in category view

Posted: 16 Dec 2010, 22:35
by hopekiah
Thanks Jan,
my file shows this on line 505:

505 echo '<div class="phocaimgdesc" style="font-size:'.$this->tmpl['fontsizeimgdesc'].'px">'. strip_tags(PhocaGalleryText::wordDelete($value->description, $this->tmpl['charlengthimgdesc'], '...')).'</div>';

Could you please STRIKE THROUGH everything I should delete?

thanks,
Hope

Re: Text breaks not working in description in category view

Posted: 17 Dec 2010, 21:14
by Jan
echo '<div class="phocaimgdesc" style="font-size:'.$this->tmpl['fontsizeimgdesc'].'px">'. PhocaGalleryText::wordDelete($value->description, $this->tmpl['charlengthimgdesc'], '...').'</div>';
But then you can have problem, that the code will be cut and end tag could by missing, so maybe you should not use the cut function:
echo '<div class="phocaimgdesc" style="font-size:'.$this->tmpl['fontsizeimgdesc'].'px">'. $value->description.'</div>';
Jan

Re: Text breaks not working in description in category view

Posted: 18 Dec 2010, 00:32
by hopekiah
The second choice worked beautifully. Thank you Jan!!

Re: Text breaks not working in description in category view

Posted: 23 Dec 2010, 21:26
by Jan
Ok