I thought about it but doesn't it leave open span class to listing pages where more cuts the description.. oh well I don't think it will do any harm though
Printable View
I thought about it but doesn't it leave open span class to listing pages where more cuts the description.. oh well I don't think it will do any harm though
Hmm that's right... You could get a little trickier with the cutting and trim the string another 26 characters if it trims at a *more*...
I have the feeling we're running into duplication of effort. Are you really using the div hiding for some listings and the *more* truncating for others?
If you tell me the exact file that applies to the listing you are working on (there are near-duplicates that work on similar-sounding but different places), I will look at it and find the right place to apply the *more* truncating.
no everything seems to work perfect for me now. MANY MANY thanks for your effort. Actually I use the span class with *more*, and applied all html stripping to that specific list so the span tag gets cut. New listing is html but parts of it hidden with css and the product page displays the whole listing.. I think you should make a mod from this since I could imagine lots of people could find it useful. Anyway many thanks again.
I changed files /tpl_docs_general_info_display.php, and /tpl_docs_product_info.php, and also modified /product_listing.php, all as in post 454486 and corrected the minor error of ) placments according to subsqquent post.
In addition, I stripped the zen_clean_html. And then to my lisitings I added the *more*
This has nicely cleaned up my listing pages, html in tact, but I still have the *more* showing on the product pages.
I put
<span class="moreMarker">*more*</span>
in place of *more* in a few product descriptions to test it, and I added
#newProductsDefault .moreMarker {display: none;} to my style sheet
With no effect - the *more* still shows on the product pages. Did I make these edits in the wrong files?
Newbie fumbling in the dark....
http://www.soxophoneplayer.com
Just wanted to post a thanks for the code in message #6. Although written a while back now, it just untangled a huge problem for me.