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

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


2013/6/23 Andreas Pattynama <andreas.pattynama at innocube.ch>

> 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
>
> }
> }
>

Sorry, just realized that doesn't work, since in my installation, I "cache"
the singlePid in the tt_news table. I will check next week, if I can find a
general example.

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