Jump to content

Formatting description text on catagory page (TXT_DESC on ViewCat.tpl)


Guest darrinbreen

Recommended Posts

Guest darrinbreen

Hello I am curious if anyone has any insight to what happens to the product description when it is on the category page as a "teaser" that is loses all its formatting and all html tags are stripped out (paragraph tags for example). Is there a way to defeat this? I would like it to retain paragraph returns and/or an unordered list applied in the RTE (FCKeditor). Is this possible? Has anyone else ran into this?

Link to comment
Share on other sites

Hello I am curious if anyone has any insight to what happens to the product description when it is on the category page as a "teaser" that is loses all its formatting and all html tags are stripped out (paragraph tags for example). Is there a way to defeat this? I would like it to retain paragraph returns and/or an unordered list applied in the RTE (FCKeditor). Is this possible? Has anyone else ran into this?

Ok then, im not really big with php I just try things until they do what I want. It might be worth getting this checked as it might cause other problems

in file includes/content/viewCat.inc.php

$view_cat->assign("TXT_DESC",substr(strip_tags($productResults[$i]['description']),0,$config['productPrecis'])."…");

remove 'strip_tags' and it should show as html

Hope this is what your looking for, ive been trying to figure this out for hours

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...