hit.vm 527 B

12345678910111213141516171819202122232425
  1. #**
  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
  5. *#
  6. #set($docId = $doc.getFieldValue('id'))
  7. <div class="result-document">
  8. ## Has a "name" field ?
  9. #if($doc.getFieldValue('name'))
  10. #parse("product_doc.vm")
  11. ## Has a "compName_s" field ?
  12. #elseif($doc.getFieldValue('compName_s'))
  13. #parse("join_doc.vm")
  14. ## Fallback to richtext_doc
  15. #else
  16. #parse("richtext_doc.vm")
  17. #end
  18. </div>