One way I've tricked Verity into reading a title tag in an app where the headers,
footers, and other parts of the page are dynamic, is to comment out the title. So
just like you did, but:
<CF_customtag ...>
<!--- <title>TitleToAppearAtTopOfBrowser</title> --->
Body contents go here.
</CF_customtag ...>
Now you have a valid HTML page being sent back to the browser, but Verity will still
pick out the title between comments. I only know that this works in all 4.x versions
of ColdFusion; I haven't tested it with 5. I hope it does or I'm in trouble!
Also, I use includes and set the page params before each instead of using custom tags
for this, although the performance is negligible. Of course you'd have to test each
method under load to be sure.
If anyone has any better ways to accomplish this, I'd love to hear about them.
-Andy
-----Original Message-----
From: Jamie Jackson [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 1:38 PM
To: CF-Talk
Subject: My header/footer inclusion scheme hinders Verity searches!
I like to use custom tags for header/footer inclusion, because it is
easy and elegant for our non-CFers to use:
-----
<cf_MyHeadFoot metaTitle="TitleToAppearAtTopOfBrowser"
pageTitle="TitleToAppearInHTML"
metaDescription="DescriptionToGoInDescriptionMetaTag"
metaKeywords="KeywordsToGoInDescriptionMetaTag">
Body contents go here.
</cf_MyHeadFoot>
-----
However, if you want to use Verity to search the site, you lose the
page titles, since Verity extracts titles from the
<head><title>Title</title></head> HTML code.
There is a workaround, which almost defeats the easiness and elegance
of the custom tag:
-----
<cf_MyHeadFoot metaTitle="TitleToAppearAtTopOfBrowser"
pageTitle="TitleToAppearInHTML"
metaDescription="DescriptionToGoInDescriptionMetaTag"
metaKeywords="KeywordsToGoInDescriptionMetaTag">
<title>TitleToAppearAtTopOfBrowser</title> <--HERE'S THE WORKAROUND
Body contents go here.
</cf_MyHeadFoot>
-----
Is there a better way? Is there a way to hack Verity to understand
that my "metaTitle" attribute is an alternate source of the document
title? Is Verity not the way to go? Any ideas whatsoever? :)
Thanks,
Jamie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists