Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   Общие вопросы (http://forum.typo3.ru/forumdisplay.php?f=12)
-   -   Поиск с помощь TypoScripts (http://forum.typo3.ru/showthread.php?t=9452)

Aleksey200505 06.05.2011 17:06

Поиск с помощь TypoScripts
 
Взял из шаблона такой typosctips, файл suche.txt. Как его заставить работать не понятно, может кто-нить подскажет. В корне сайта прописал
lib.suche = RECORDS
lib.suche.tables = tt_content
lib.suche.source= [ ID результирующей странице]
но работать так и не захотело.


файл suche.txt

lib.suche = COA lib.suche {

# 10 = TEXT
# 10.value = suche.. #Hier kann ein Text stehen
20 < tt_content.search.30
20.dataArray >
20 {
stdWrap.wrap = |
layout = ###LABEL### ###FIELD###

# Elementen wie Feldern und Buttons eine Klasse zuweisen
labelWrap.wrap = |

params = class="textbox"
params.submit = class="f-submit"
params.textarea = id="searchsite"
dataArray {

# Hier steht fĂŒr den neuen linken Button der Code (siehe unten)
# 10.label > # Einstellung fĂŒr ein leeres Label
# 10.label = Поиск
10.type = sword=input,25 # mit der Zahl wird die size des Feldes eingestellt
10.value =
# Hier könnte eine Select-Box stehen
# 20.type = scols=select
# 20.valueArray {
# 10.label = Headers and keywords
# 10.value = pages.title-subtitle-keywords-description:tt_content.header
# 20.label = Pagecontent
# 20.value = tt_content.header-bodytext-imagecaption
# }
20.label >
20.type = scols=hidden
20.value = tt_content.header-bodytext-imagecaption
30.type = stype=hidden
30.value = L0
40.type = submit=submit
40.value = Искать
}
redirect = {$suche}
target=_self
}
}

plugin.tx_indexedsearch {
result_link_target = _self
}


Часовой пояс GMT +4, время: 05:42.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Перевод: zCarot