Hi,
I'm creating a search application. I have a file my srchform.cfm and it works fine. It returns results in the template srchresults.cfm.
Here's some of the contents of my srchresults.cfm file:
<CFSEARCH NAME="search_card"
COLLECTION="card"
CRITERIA="#FORM.criteria#">
And in the <body>,
<CFOUTPUT QUERY="search_card">
<a href="#URL#" target="blank" class="textlinks">#title#</a><br>
Score:#Evaluate(100* Score)#%<p>
</CFOUTPUT>
Notice above that I'm showing the Title in the search results.
Here's the problem. Some of my pages have the Title processed dynamically in a CFM page.
For example, I have:
#Card.CardName# - #Card.Description# #Card.CategoryName#
And in my search results, the information does not resolve to what it should be. It still stays as Coldfusion text.
It seems that <CFOUTPUT> would take care of the processing but it doesn't. Also, the page that I'm pointing to has its <TITLE> correct when I look at it on the browser.
Is there anything that I can do? I tried using <cfloop> for the query, and then wrap everything on the page around <CFOUTPUT>, but that still doesn't work.
I realize that <TITLE> is client-side and processed before any server-side processing, but I'm not sure how I can skirt around this.
Any advice you can give is appreciated.
Thanks for your help.
mickeyj2
I'm creating a search application. I have a file my srchform.cfm and it works fine. It returns results in the template srchresults.cfm.
Here's some of the contents of my srchresults.cfm file:
<CFSEARCH NAME="search_card"
COLLECTION="card"
CRITERIA="#FORM.criteria#">
And in the <body>,
<CFOUTPUT QUERY="search_card">
<a href="#URL#" target="blank" class="textlinks">#title#</a><br>
Score:#Evaluate(100* Score)#%<p>
</CFOUTPUT>
Notice above that I'm showing the Title in the search results.
Here's the problem. Some of my pages have the Title processed dynamically in a CFM page.
For example, I have:
#Card.CardName# - #Card.Description# #Card.CategoryName#
And in my search results, the information does not resolve to what it should be. It still stays as Coldfusion text.
It seems that <CFOUTPUT> would take care of the processing but it doesn't. Also, the page that I'm pointing to has its <TITLE> correct when I look at it on the browser.
Is there anything that I can do? I tried using <cfloop> for the query, and then wrap everything on the page around <CFOUTPUT>, but that still doesn't work.
I realize that <TITLE> is client-side and processed before any server-side processing, but I'm not sure how I can skirt around this.
Any advice you can give is appreciated.
Thanks for your help.
mickeyj2