Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Search Results


Reply

4 Posts   1004 Views

Avatar
webmmsd

10 June 2010 at 6:00am Community Member, 10 Posts

Hello, is there a way that I can have images NOT show up in the search results? I want text only on the search results page.

Thank You!

Attached Files
Avatar
Willr

10 June 2010 at 6:08pm Forum Moderator, 5511 Posts

In your search results template instead of $Content.Summary or whatever you use I believe you can do $Content.NoHTML which strips all html tags out of the text (including images).

Avatar
webmmsd

11 June 2010 at 4:51am Community Member, 10 Posts

Hello Willr,

This is what I found - $Content.FirstParagraph(html)

I will give what you suggested a try!

Cheers,
Alex

Avatar
webmmsd

11 June 2010 at 5:11am Community Member, 10 Posts

YES!!!!!! Made this modification in Page_results.ss in the layout folder buried in the themes folder

Changed this - $Content.FirstParagraph(html)

to - $Content.NoHTML - which stripped the images, but it had lots of text (still very acceptable)

next try - $Content.FirstParagraph(NoHTML) - NICE

NoHTML - is this case sensitive? Guess I could do a version all lower case and find out, duh.

THANK YOU!
Alex

Attached Files