Well, my document template is pulling the data from the database but its not using the 
query thats run when the search function is started.

---------- "Barney Boisvert" <[EMAIL PROTECTED]> writes:

Are you saying that your document templates contain the content directly,
rather than pulling it from the database?  If that's the case, you're stuck,
unless you somehow read that template into a variable so you can manipulate
it (with replaceNoCase).

> -----Original Message-----
> From: Tuan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 14, 2003 1:32 PM
> To: CF-Talk
> Subject: Highlighting search keyword problem
>
>
> Ok, I've searched and read many topics on how to highlight
> keywords from a search result, but im still having problems
> figuring this out. All of the topics and examples that i've seen
> shows how to do it if your search result(detailed) page is
> created by ur search query. If thats the case then you would use
> the ReplaceNoCase function on your search query.  Or other
> examples showed that the text was already set to a variable which
> then was used by the ReplaceNoCase function to highlight the text.
>
> But my problem is what if in your application you have a search
> function that runs and the search results shows a list of doc
> titles that contains the keyword that the user searched.  Now
> each doc title most likely has a different template name
> associated with it.  When you click on the title it will take you
> to different templates that existed previously w/o having any
> relationship with the search query at all (except for it
> contained that keyword).  How can i apply the highlighting of the
> keywords to these already existing documents?  I'm sorry if this
> isn't very clear.
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to