2 * Called for each matching document but then
3 * calls one of product_doc, join_doc or richtext_doc
4 * depending on which fields the doc has
7 #set($docId = $doc.getFieldValue('id'))
9 <div class="result-document">
11 ## Has a "name" field ?
12 #if($doc.getFieldValue('name'))
13 #parse("product_doc.vm")
15 ## Has a "compName_s" field ?
16 #elseif($doc.getFieldValue('compName_s'))
19 ## Fallback to richtext_doc
21 #parse("richtext_doc.vm")