[TYPO3-Solr] Render SOLR_MULTIVALUE in result

Albert van der Veen albert.van.der.veen at xs4all.nl
Thu Aug 30 15:01:17 CEST 2012


Hi Ingo,

Thanks for the feedback. I already used the multivalue viewhelper. 
However, this doesn't give the desired result, as it is invoked after 
the fields are processed.

To fix this I created a new case in the function 
processDocumentFieldsToArray in 
class.tx_solr_pi_results_resultscommand.php called 'implode', which 
implodes the multivalue array.

By adding this to my TS, the setup in my previous mail now gives the 
desired result:

fieldProcessingInstructions {
	producttype_stringM = implode
}

Best,
Albert

On 28-8-2012 11:12, Ingo Renner wrote:
> Am 27.08.12 16:53, schrieb Albert van der Veen:
>
> Hi Albert,
>
>> Debugging seems to suggest
>> that an array enters the CASE statemnet,
>
> that's correct, because multivalue fields act like arrays.
> However, there's the ###MULTIVALUE:array|glue### view helper, maybe that
> could help you out here...
>
>
> Best,
> Ingo
>



More information about the TYPO3-project-solr mailing list