[TYPO3-Solr] solr, tx_news and link to news detail page

Marc Wöhlken woehlken at quadracom.de
Thu Apr 30 16:54:29 CEST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you Birte!
Removed the standard solr config/TS-template for news and rewrote it
from scratch - works like a charm.

I have absolutely no idea what went wrong...

CU
Marc

- -----
plugin.tx_solr.index.queue {
	news >
	news = 1
	news {
	  table = tx_news_domain_model_news
	  fields {
	    abstract = short
	    author = author
	    description = short
	    title = title
	
	    content = SOLR_CONTENT
	    content {
	        field = bodytext
	    }
	
	    url = TEXT
	    url {
	        typolink.parameter = 509
	        typolink.additionalParams =
&tx_news_pi1[action]=detail&tx_news_pi1[controller]=News&tx_news_pi1[new
s]={field:uid}
	        typolink.additionalParams.insertData = 1
	        typolink.returnLast = url
	        typolink.useCacheHash = 0
	    }
	
	    sortAuthor_stringS = author
	    sortTitle_stringS  = title
	  }
	}
}
- -----




Am 30.04.2015 um 13:14 schrieb Birte Weishaupt:
> Hi Marc,
> 
> this is how we setup tx_news for indexing in solr:
> 
> #index additional tables #tx_news plugin.tx_solr { index { queue { 
> tx_news >
> 
> NewsPresse = 1 NewsPresse { table = tx_news_domain_model_news 
> additionalWhereClause = pid=11288
> 
> fields { level2Uid_longS = TEXT level2Uid_longS { value = 785 } 
> level2Title_stringS = TEXT level2Title_stringS { value = Presse }
> 
> abstract = short author = author description = short title = title
> 
> content = SOLR_CONTENT content { field = bodytext }
> 
> url = TEXT url { typolink.parameter = 429 typolink.additionalParams
> =
> &tx_news_pi1[action]=detail&tx_news_pi1[controller]=News&tx_news_pi1[n
ews]={field:uid}
>
> 
typolink.additionalParams.insertData = 1
> typolink.returnLast = url typolink.useCacheHash = 0 }
> 
> sortAuthor_stringS = author sortTitle_stringS  = title } }
> 
> } } }
> 
> Hope this helps!
> 
> Best regards Birte
> 
> 
> -----Ursprüngliche Nachricht----- Von:
> typo3-project-solr-bounces at lists.typo3.org
> [mailto:typo3-project-solr-bounces at lists.typo3.org] Im Auftrag von
> Marc Wöhlken Gesendet: Donnerstag, 30. April 2015 12:41 An:
> typo3-project-solr at lists.typo3.org Betreff: Re: [TYPO3-Solr] solr,
> tx_news and link to news detail page
> 
> No one having trouble with setting up solr and tx_news?
> 
> CU Marc
> 
> 
> Am 24.04.2015 um 11:27 schrieb Marc Wöhlken:
>> Hi, I have set up solr to index my tx_news items which works just
>>  fine. The only thing that's not working is generating the link
>> to the detail view of news items.
> 
>> I have included the static typoscript template "Index queueu 
>> configuration for news" and adapted the corresponding typoscript
>> to use the uid of my news detail page:
> 
>> plugin.tx_solr.index.queue.news.fields.url.typolink.parameter = 
>> 509
> 
>> Instead of linking to the page with uid 509 all news items are
>> linked to the starting page of my website.
> 
>> Any ideas what's going wrong?
> 
>> Using solr 3.0.0 with tx_news 3.0.1 and TYPO3 6.2.11
> 
>> Hoping for some hints Marc
> 
> 
> 
> _______________________________________________ TYPO3-project-solr
> mailing list TYPO3-project-solr at lists.typo3.org 
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr
> 

- -- 
...........................................................
Marc Wöhlken                     TYPO3 certified integrator

Quadracom - Proffe & Wöhlken

Rembertistraße 32              WWW: http://www.quadracom.de
D-28203 Bremen                E-Mail: woehlken at quadracom.de
______________             PGP-Key: http://pgp.quadracom.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlVCQiUACgkQCRKBuax+I4gkWQCeLdyYOEUK71N9E/ovBLwOVB40
u6AAoLg7xZuhJwA2BYC8lNpoe3qaQLD5
=zV+f
-----END PGP SIGNATURE-----


More information about the TYPO3-project-solr mailing list