rtgx

Defaultný search modul v Typo3

Základné nastavenie typoscriptu:

# Search Box ##############################################################

tt_content.search.20.target = _self
tt_content.search.20.renderObj.10.typolink.target = _self

temp.search < tt_content.search.30
temp.search {
type >
type = 3
target = _self
params.submit = class="submit"
params.input = class="word"
stdWrap.wrap >
stdWrap.wrap = <p>|</p>
layout = ###FIELD###
fieldWrap.wrap = |
dataArray {
10.type = sword=input,17
20.valueArray >
20.type = scols=hidden
20.value = pages.title:pages.keywords:tt_content.header:tt_content.bodytext:tt_content.imagecaption
# 20.value = pages.title:pages.keywords:tt_content.header-bodytext-imagecaption
35.type = label
35.value =
40.value =
40.value.data =
40.value =  
}
}

# Search Result ############################################################

temp.searchresult < tt_content.search.20
temp.searchresult {
range = 10
renderObj.10.wrap = <h2>|</h2>
renderObj.20.stdWrap.wrap = <p>|</p>
renderObj.20.stdWrap.crop = 160 |... | 1
noResultObj.10.wrap = <h1>|</h1>
layout {
wrap = | ###RESULT###
10 = TEXT
10.value = Výsledky hľadania: ###RANGELOW###-###RANGEHIGH### z ###TOTAL###
# 10.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.resultRange
10.data =
10.fontTag =
10.wrap = <h1>|</h1>
20 = TEXT
20.value = ###PREV### ... ###NEXT###
20.fontTag =
20.wrap = <p>|</p>
}
}
 
Žiadne dokumenty ani odkazy k tejto stránke.