[TYPO3-Solr] Using tx_solr_viewhelper_AbstractSubpartViewHelper

Heiko Kromm | Paints h.kromm at paints.de
Tue Oct 25 17:26:48 CEST 2011


Hi list, 

are there any examples on how to use the tx_solr_viewhelper_AbstractSubpartViewHelper? 
I found the tx_solr_viewhelper_Facet viewhelper, but I don't see how this works. 

I would like to create a viewhelper for my custom indexed elements. I'm thinking about something like this: 

<!-- ###IF:###RESULT_DOCUMENT.TYPE###|==|myelement### begin --> 
<!-- ###MYELEM:###RESULT_DOCUMENT.UID###### begin --> 
<h1>###MYELEM_ITEM.title###</h1> 
###MYELEM_ITEM.img### 
<!-- ###MYELEM:###RESULT_DOCUMENT.UID### ### end --> 
<!-- ###IF:###RESULT_DOCUMENT.TYPE###|==| myelement ### end --> 

MYELEM should be my own viewhelper and it should set the variable MYELEM_ITEM with data fetched from the database, depending on the uid submitted to the viewhelper. 

I need this, because I want to render some pictures and special fields in the search result and don't want to save them in solr. 

Thanks for any help on the subpartViewHelper 

Regards 
Heiko 




More information about the TYPO3-project-solr mailing list