[TYPO3-Solr] IF-ViewHelper and custom variables

Heiko Kromm | Paints h.kromm at paints.de
Thu Nov 3 11:11:22 CET 2011


Hi List, 

I tried to use the IF-Viewhelper with a variable set by my own viewhelper. 
On my results page I have a wrapping like this: 
<!-- ###DISPLAYICONS:1### begin --> 
<ol start="###RESULTS.OFFSET###" class="results-list results-list-display-type-###DISPLAY_ICONS_STATUS.ACTIVE_DISPLAY###"> 
<!-- ###LOOP:RESULT_DOCUMENTS### begin --> 
<!-- ###LOOP_CONTENT### --> 
<li class="results-entry row-###ODD_EVEN:###LOOP_CURRENT_ITERATION_COUNT######"> 
<!-- ###IF:###DISPLAY_ICONS_STATUS.ACTIVE_DISPLAY###|!=|list### begin --> 
<a href="###RESULT_DOCUMENT.URL###"><img ... /></a> 
<!-- ###IF:###DISPLAY_ICONS_STATUS.ACTIVE_DISPLAY###|!=|list### end --> 
</div> 
... 
</li> 
<!-- ###LOOP_CONTENT### --> 
<!-- ###LOOP:RESULT_DOCUMENTS### end --> 
</ol> 
<!-- ###DISPLAYICONS:1### end --> 

my displayicons-Viewhalper sets a Variable DISPLAY_ICONS_STATUS.ACTIVE_DISPLAY. 
I can output the variable, but the IF-ViewHelper does not resolve ist. 
If I debug the conditions array in tx_solr_template, the comparand1 is ###DISPLAY_ICONS_STATUS.ACTIVE_DISPLAY###, not the resolved value. 

Regards 
Heiko 



More information about the TYPO3-project-solr mailing list