10848 Posts in 2516 Topics by 1792 members
|Go to End|
10 June 2010 at 6:00am
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.
10 June 2010 at 6:08pm
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).
11 June 2010 at 4:51am
This is what I found - $Content.FirstParagraph(html)
I will give what you suggested a try!
11 June 2010 at 5:11am
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.
|Go to Top|