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: [aubreyb] Help! Remove image from listing?

By Jason - April 7, 2010

Hi,

You can try removing the HTML tags from your content on the where you're outputting it on the listing page.

It will look something like this:

strip_tags($records['content']);

Let me know if this 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 - 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: [Jason] Help! Remove image from listing?

By aubreyb - April 8, 2010

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