You are here:   » Home » Documentation » Details » How-To » Search » Home

Hit-optimisation for external search engines

Author: Rainer Wollthan, zooling.de, 2003/09/30

The hit relevance with external search engines like Google or Altavista shall be optimised.

Solution: The document title is valued relatively high in the relevance; a 'relevance-enhancement' can be achieved through the additional display of the mircronavigation in the title-element.
For this the DTML-template headTitle is introduced locally.

<!--BO micronav/headTitle -->
<title><dtml-var "getDocumentElement().getTitlealt(REQUEST)"  html_quote> 
<dtml-in "breadcrumbs_obj_path()">
<dtml-if "getId()!=getDocumentElement().getId()">
<dtml-unless "isResource(REQUEST)">
<dtml-if "isVisible(REQUEST)">- 
<dtml-var "getTitlealt(REQUEST)" html_quote>
</dtml-if>
</dtml-unless>
</dtml-if>
</dtml-in>
</title>
<!--EO micronav/headTitle -->

<!-- Alternative: -->

<!-- BO keywords/headTitle --> 
<title>
<dtml-var "getTitle(REQUEST)">:
<dtml-var "getObjProperty('attr_dc_subject',REQUEST)">
</title>
<!-- EO keywords/headTitle -->

Comment: The alternative approach is the output of keywords (DC.Subject) in the title-tag; however this presumes that the meta-attribute is collected systematically.