[TYPO3-german] indexed_search - Suchergebnisse werden auf aktueller Seite ausgegeben

Ingo Preuß preuss at zedat.fu-berlin.de
Wed Dec 16 14:43:45 CET 2009


Hallo Dennis,

Am Mi, 16.12.2009, 12:40 schrieb Dennis Grote:
> Hallo Ingo,
> das TS wird eigentlich auf alle Unterseiten der Rootpage vererbt und
> sollte im Template-Analyzer der Suche-Seite genauso auftauchen. So wie
> es aussieht kommt nur die Standard config der macina searchbox auf der
> Unterseite an.
>
>
> Ein paar mögliche Fehler die mir einfallen ohne dein config genauer zu
> kennen:
> 1. Tippfehler irgendwo
> 2. Suche-Seite ist keine Unterseite der Rootpage
> 3. Zwischen drin bei einem +ext TS den haken bei Clear: Setup gesetzt?
>

Wegen des Tippfehlers bin ich unterwegs. Klammern sind geprüft und ok.

Aktuell existiert kein Extension Template.

Allerdings war - warum auch immer - "clear setup" gesetzt. Hab's raus
genommen und im backend alle caches geleert.

Sämtliche Änderungen im Root-TS landen im Frontend. Bis auf die Suche:

TS zur Suche:

# Einbinden TS-Datei(en)
################################################################
<INCLUDE_TYPOSCRIPT: source="FILE: fileadmin/templates/ts/setup.ts">
<INCLUDE_TYPOSCRIPT: source="FILE: fileadmin/templates/ts/navigation.ts">
<INCLUDE_TYPOSCRIPT: source="FILE: fileadmin/templates/ts/config.ts">

# Page Setup
###################################################################################
page = PAGE
page {
    bodyTag = <body onload="load()" onunload="GUnload()">
    typeNum = 0

  # TemplaVoila
    10 = USER
    10.userFunc = tx_templavoila_pi1->main_page

    includeCSS {
        standard = fileadmin/templates/css/style.css
        standard.media = screen
    }

    headerData.10 = TEXT
    headerData.10.value = <meta name="google-site-verification"
content="qScXMskmRQOlyIXXufRnY8S6R2DlS_SqSXieFOpWwJE" />

  # Internet Explorer 6
    [browser = msie] && [version = 6]
    headerData.20 = TEXT
    headerData.20.value (
        <!--[if IE 6]>
          <style type="text/css" media="screen, projection">
            @import "fileadmin/templates/css/ie6.css";
          </style>
        <![endif]-->
    )
    [end]


    #headerData.40 = TEXT
    #headerData.40.value =  <script type='text/javascript' 
src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>

    includeJS {
        file51 = fileadmin/templates/js/sumcheck.js
    }
}

page.config {

  # REALURL
    simulateStaticDocuments = 0
    tx_realurl_enable = 1
    prefixLocalAnchors = all
    baseURL = http://demo.preuss-it.com/

    #disablePrefixComment = 1

  # XHTML
    doctype = xhtml_trans
    xmlprologue = none

    #xhtml_cleaning = all

    htmlTag_langKey = de

  # Swap TYPO3 CSS and JS
    removeDefaultJS = external
    inlineStyle2TempFile = 1

  # Spam Protection
    spamProtectEmailAddresses = 1
    spamProtectEmailAddresses_atSubst = &nbsp;[at]&nbsp;

  # Send UTF-8 Notification Email Headers
    notification_email_charset = utf-8
    notification_email_encoding = quoted-printable
    notification_email_urlmode = all

  # Disable admin panel
    admPanel = 0

    headerComment (

            **********************************************************
            Design & Konzeption: pit
            **********************************************************
    )
}

# Sprachauswahl
################################################################
config.linkVars = L
config.sys_language_mode = content_fallback
config.index_externals = 1

[globalVar=GP:L=0]
# Standard deutsch
config.sys_language_uid = 0
config.sys_language_overlay = 1
config.language = de
config.locale_all = de_DE
config.htmlTag_langKey = de
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 0
[global]

[globalVar=GP:L=1]
# L=1 <-> english
config.sys_language_uid = 1
config.sys_language_overlay = 1
config.language = en
config.locale_all = en_EN
config.htmlTag_langKey = en
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 1
[global]


# Machina Searchbox
################################################################
plugin.tx_macinasearchbox_pi1 {
    pidSearchpage = 95
    templateFile = fileadmin/templates/msearch.html
    #templateFile = fileadmin/templates/macina.html
}

plugin.tx_macinasearchbox_pi1._LOCAL_LANG.de {
    #headline = Suchen:
    submit = Suche
}


# indexed_search
###################################################################################

plugin.tx_indexedsearch {

        _CSS_DEFAULT_STYLE >
        _DEFAULT_PI_VARS.lang = 0
        templateFile = fileadmin/templates/tmpl_suchen.html

      # search.rootPidList= 1

      # erweiterte Suche abschalten
        show.advancedSearchLink = 0
        show.rules = 0

      # standardmaessig mit 'Wortteil' suchen statt mit ganzem Wort
        _DEFAULT_PI_VARS.type = 1

      # standardmaessig mit erweiterter Suche starten
        _DEFAULT_PI_VARS.ext = 0
        _DEFAULT_PI_VARS.results = 5

      # page icon fuer die Ergebnisse
        specConfs.0.pageIcon = IMAGE
        specConfs.0.pageIcon {
                               file =
fileadmin/templates/images/arrow_brown.gif
        }

        specConfs.1.pdfIcon = IMAGE
        specConfs.1.pdfIcon {
                               file = fileadmin/templates/img/ico_pdf.gif
        }

        _LOCAL_LANG.de {

             submit_button_label = Suchen
             form_searchFor = Suche nach
             searchFor = Suchergebnis
             noResults = Keine Ergebnisse

             link_advancedSearch = Erweiterte Suche
             link_regularSearch = Normale Suche

           # Ausgabe Suchergebnisse
             res_path = Pfad
             res_modified = Modifiziert am
             res_created = Erstellt am
             res_size = Groesse

             inSection = in der Kategorie
             inNsection = in %s Kategorie
             inNsections = in %s Kategorien

             word_page = Seite
             word_pages = Seiten
             unnamedSection = Andere

             pi_list_browseresults_page =
             pi_list_browseresults_prev = Zurueck |
             pi_list_browseresults_next = | Naechste
             pi_list_browseresults_display = Anzeige Ergebnisse
###TAG_BEGIN###%s bis %s###TAG_END### von
###TAG_BEGIN###%s###TAG_END###

        }
}

lib.search < plugin.tx_macinasearchbox_pi1
lib.search < plugin.tx_indexedsearch


Gruß, Ingo

----------------------
PC-Notdienst FU Berlin

Ingo Preuss
Rigaer Strasse 65
10247 Berlin

mobil 0163.160 51 03



More information about the TYPO3-german mailing list