Default content search results produces invalid html


I'm learning the ins and outs of ContentBox by creating a couple layouts for it. I was in the process of styling the content search results and noticed that the html produced by the function renderSearchWithResults() in DBSearch.cfc is invalid.

On line #105 the <li> tag is closed before the <cite> tag, and below that on line # 112 is another <cite> tag and <br> tag on line #116. While this doesn't really break anything, thought I should mention it.

By the way it would be really great if we could style the search results the way we can for blog archives, categories and comments by using a custom template.


Luis Majano
July 11, 2014, 4:05 AM

Thanks for pointing this out. By the way, you can create a search.cfm view and a search.cfm template to style them as you see fit.

Don Bellamy
July 11, 2014, 4:10 AM

Hey Luis! I've created a search.cfm view template, but still using cb.getSearchResultsContent() to output the html within that template, which is grabbing the html from the renderSearchWithResults() function. I don't see an easy way to change that html, unless I am missing something.

Luis Majano
July 11, 2014, 4:14 AM


Dump the PRC scope. You will see the raw search objects there:

Don Bellamy
July 11, 2014, 4:39 AM

Sounds good, I'll check that out, I haven't dug that far into the code. Thanks.


Luis Majano


Don Bellamy




Fix versions

Affects versions