[TYPO3-dev] Indexed_Search: Headlines in default language

Stefano Kowalke blueduck at gmx.net
Fri Jun 6 23:45:26 CEST 2008


Hi Devs,

i just coverd a strange behavior:

I have a site with few languages in an one tree scenario. If i call
indexed_search in another one as default language, i get the searchresult
in the selected language (spanish), but the headlines (page titles) in the
default language (german).

In typo3/sysext/css_styled_content/static/setup.txt i found the TS which
responsible for this.

...

# ******************
# CType: search
# ******************
tt_content.search = COA
tt_content.search.10 = < lib.stdheader
# Result:
tt_content.search.20 = SEARCHRESULT
tt_content.search.20 {
        allowedCols = pages.title-subtitle-keywords-description :
tt_content.header-bodytext-imagecaption :
tt_address.name-title-address-email-company-city-country :
tt_links.title-note-note2-url : tt_board.subject-message-author-email :
tt_calender.title-note : tt_products.title-note-itemnumber
        languageField.tt_content = sys_language_uid
        renderObj = COA
        renderObj {
                10 = TEXT
>               10.field = pages_title
                10.htmlSpecialChars = 1
                10.typolink {
                        parameter.field = uid
                        target = {$styles.content.searchresult.resultTarget}
                        additionalParams.data = register:SWORD_PARAMS
                        additionalParams.required = 1
                        additionalParams.wrap = &no_cache=1
                }
                10.htmlSpecialChars = 1
                10.wrap = <h3 class="csc-searchResultHeader">|</h3>

...


If you change this piece  
>               10.field = pages_title
to
10.field = languageField.pages = sys_language_uid
the correct headline was taken.

Its possible overwrite this in the root template with:
tt_content.search.20.renderObj.10.field = languageField.pages =
sys_language_uid

but ist very secret. So my question is: Could set this directly in setup.txt
an goes to SVN, or see anybody problems eg. if you have only a single
language site and sys_language_uid does not exist or is empty?


Cheers
Stefano
-- 
Seit dem 1.1.2008 werden Daten zu jeder E-Mail verdachtsunabhängig gespeichert! 
Weitere Informationen: www.vorratsdatenspeicherung.de
GPG-ID: 0x2B08936D
Key-Fingerprint: 7F31 BCF0 70C0 B3B1 1235 07E9 1777 D7A0 2B08 936D




More information about the TYPO3-dev mailing list