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

Birte Weishaupt birte.weishaupt at uni-bremen.de
Thu Apr 30 13:14:37 CEST 2015


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[news]={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

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

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
> 


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

iEYEARECAAYFAlVCBtYACgkQCRKBuax+I4i8ywCgnmSS74wEMxU5xmN00gH+ikJs
5+4AoIxu/N6oebWDhpYRwfZdX8U6UyeI
=gHUo
-----END PGP SIGNATURE-----
_______________________________________________
TYPO3-project-solr mailing list
TYPO3-project-solr at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr



More information about the TYPO3-project-solr mailing list