As part of our search, we're indexing some affiliates sites. Sadly not
all of these affiliates are using metatag descriptions, so I need a way
to display either the metatag _or_ an excerpt.
I've come up with this hack (in long.html or short.html, or whatever):
<script>
if ("$(METADESCRIPTION)" == "")
{
document.write("$(EXCERPT)");
}
else
{
document.write("$(METADESCRIPTION)");
}
</script>
Is there a more elegant approach to this?
Thanks,
Greg
--
Greg Burnham
Lead Technologist
7th Floor Media
SFU @ HC
515 West Hastings,
Vancouver, BC
V6B 5K3
604 291 5277 (ph)
604 291 5173 (fx)
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html