[TYPO3-Solr] Multiple sites and news url
Jigal van Hemert
jigal.van.hemert at typo3.org
Wed Jan 16 13:08:50 CET 2013
Hi,
On 16-1-2013 12:24, Aart de Bruijn wrote:
> On 16-01-13 12:07, Jigal van Hemert wrote:
>> On 16-1-2013 11:25, Aart de Bruijn wrote:
>>> First things first, as the my problem is with the url.
>>> 49/?tx_ttnews[tt_news]=163&cHash=e827aafa5086585cb734b4666f7d3858
>>> where
>>> ?id=49&tx_ttnews[tt_news]=163&cHash=e827aafa5086585cb734b4666f7d3858
>>> will direct to the correct url.
>>
>> The first one looks like a url generated by RealURL where the domain
>> isn't defined correctly in the RealURL config.
>>
> The realurl config line for this site is
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['environment.subdomain.domain.com']['pagePath']['rootpage_id']
> = 40;
> How can I check if it's configured correctly? The root page id is
> correct and realurls are created properly (also for the news page)
>
> The ?id=49&tx_ttnews[tt_news]=163&cHash=e827aafa5086585cb734b4666f7d3858
> was an example to show what the url should be for realurl to rewrite it
> to the correct one.
Solr uses typolink to generate urls, so if RealUrl is active it will
generate realurls.
Solr needs a domain record in each pagetree (if you have multiple domain
in a single installation each tree must have its own domain record). If
you have more than one domain record in a (sub)tree it will use the
first domain record.
If you have your news records outside a pagetree you can include the
records in one of the configurations by defining the pid of the news
records in additionalPageIds [1].
[1]
http://forge.typo3.org/projects/extension-solr/wiki/Tx_solrindex#queueindexingConfigurationadditionalPageIds
--
Jigal van Hemert
TYPO3 Core Team member
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-project-solr
mailing list