[TYPO3-Solr] tt_news, multiple single-pids and other problems

Andreas Pattynama andreas.pattynama at innocube.ch
Sun Jun 23 11:16:26 CEST 2013


Hi

2013/6/23 Jigal van Hemert <jigal.van.hemert at typo3.org>

>              url = TEXT
>
>>              url {
>>                  typolink.parameter = {$plugin.tt_news.singlePid}
>>
>
> Now the default single pid setting from tt_news is used. In your case the
> single pid is defined by the setting in the category. Here you'll have to
> lookup the single pid for the category and use that as value for the
> typolink.parameter property.


Here's an example how I used it in a past project:

plugin.tx_solr.index.queue.tt_news.fields {

url = TEXT
url {
          typolink.parameter.data = field:tx_idgnewsextend_singlepid
          typolink.additionalParams = &tx_ttnews[tt_news]={field:uid}
          typolink.additionalParams.insertData = 1
          typolink.returnLast = url
          typolink.useCacheHash = 1

}
}

You can of course remove typolink.returnLast = url if you already want the
complete <a>-tag.

Best regards,
Andy

-- 
innocube GmbH
Schlettstadterstrasse 31
CH-4055 Basel

Tel:  +41 44 500 48 65
Mail: andreas.pattynama at innocube.ch
Web: http://www.innocube.ch/


More information about the TYPO3-project-solr mailing list