Help! Remove image from listing?

5 posts by 2 authors in: Forums > CMS Builder
Last Post: April 8, 2010   (RSS)

By aubreyb - April 7, 2010 - edited: April 7, 2010

Hello - I have an image embedded in the WYSIWYG content that is showing up on my listings page, and I do not want it to. Is there a way to keep the image in the content for the detail page, but remove it from the brief on the listings page? I'm showing only the first 200 characters on the listing page, and need the image at the beginning of the articles. Thank you

Re: [Jason] Help! Remove image from listing?

By aubreyb - April 8, 2010 - edited: April 8, 2010

Hi Jason,
I tried it, but did not have any luck. It's very possible that I'm not doing something correctly though. I'm not a php wizard by any means. Here is what I did:

<?PHP echo textLimit($record['content'], 200)?><?PHP echo strip_tags($record['content']);?> <br />

Re: [aubreyb] Help! Remove image from listing?

By Jason - April 8, 2010

Hi,

You're close. We just need to roll all of that up into one statement. Try this:

<?php echo textLimit(strip_tags($record['content']),200); ?>

Give that a try and let me know if it works.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Help! Remove image from listing?

By aubreyb - April 8, 2010

WOO! You are a genius. That worked beautifully. Thank you!