[TYPO3-Solr] Multiple sites and news url
Aart de Bruijn
aart at brownentertainment.nl
Wed Jan 16 11:25:15 CET 2013
Hi,
I'm going nuts on this one..
On a multisite typo installation (multisites are subdomains of 1 domain
in this case) there are different news folders, one for every sites,
some sites have 2 news folders, and some site get the news of other
sites (news of certain categories).
First things first, as the my problem is with the url. The typolink
parameter gets in the url, the param of the news id as well but doesn't
format the link wel. Instead of linking to a nice url it links to:
49/?tx_ttnews[tt_news]=163&cHash=e827aafa5086585cb734b4666f7d3858
where
?id=49&tx_ttnews[tt_news]=163&cHash=e827aafa5086585cb734b4666f7d3858
will direct to the correct url.
My TS config for on subdomain is:
subdomain1_news {
table = tt_news
addtionalWhereClause = tt_news.uid IN (SELECT mm.uid_local FROM
tt_news_cat_mm mm WHERE mm.uid_foreign = 13 )
fields {
category_stringM = SOLR_RELATION
category_stringM {
localField = category
relationTableSortingField = sorting
multiValue = 1
}
categoryMain_stringS = TEXT
categoryMain_stringS {
cObject = SOLR_RELATION
cObject {
localField = category
relationTableSortingField = sorting
singleValueGlue = ,
}
split {
token = ,
returnKey = 0
}
}
keywords = SOLR_MULTIVALUE
keywords {
field = keywords
}
author = author
description = short
title = title
content = SOLR_CONTENT
content {
field = bodytext
}
url = TEXT
url {
typolink.parameter = 49
typolink.additionalParams = &tx_ttnews[tt_news]={field:uid}
typolink.additionalParams.insertData = 1
typolink.returnLast = url
typolink.forceAbsoluteUrl = 1
typolink.useCacheHash = 1
}
}
}
I've got a long way to go with indexing all these news items correctly
(different domains, shared news folders, and some based on categories)
but if someone can help me out on this first problem with the url it
would be greatly appreciated!!
Thanks in advance,
Aart
More information about the TYPO3-project-solr
mailing list