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: [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!