[TYPO3-german] Hilfe bei sg_search, tt_content, sg_glossary
Basti
sebastian.schmal at gmx.de
Wed Oct 14 22:51:18 CEST 2009
Hallo Liste,
ich versuche verzweifelt die zwei ext: sg_glossary, sg_search + den
content text zu durchsuchen.
Durchsuchen klappt soweit, doch wird das Ergebnis von der EXT:
sg_glossary zwar angezeigt, aber der Link verweißt auf die "hauptdomain"
und nicht auf den Eintrag/Artikel
Beim tt_content funktioniert alles perfekt.
Dann würde ich gerne die gefundenen Wörter "Highlight", geht das mit der
Ext ?
Mein TS CODE: zum Teil von hier:
http://www.typo3-nürnberg.de/typo/extensions/suche/sg-search/
TS:
plugin.tx_sgsearch.IDofResultPage = 28
plugin.tx_sgsearch.IDofSearchPage = 29
# ------------------------------------
# SG Search: Setup
# ------------------------------------
plugin.tx_sgsearch.result {
range = 5
# 0=Input is treated as ONE item; 1=Items are ANDed 2=Items are ORed
searchMode = 2
#renderWrap = <div>###TYPETITLE### (###TYPECOUNT###)</div>|
renderWrap =
renderMore = <div>|</div>
renderSummary = <div>|</div>
renderObj {
10.wrap = <h3 class="csc-searchResultHeader">|</h3>
20.stdWrap.wrap = <p class="csc-searchResult">|</p>
}
summary {
wrap = <div>|###RESULT###</div>
10.wrap = <div>|</div>
}
layout = COA
layout {
10 = TEXT
10.value =
15 = TEXT
15.data = LLL:EXT:sg_search/pi/locallang.php:search.resultRange
15.fontTag =
15.wrap = <div class='csc-searchResultTitle'>|</div>
20 = TEXT
20.data = LLL:EXT:sg_search/pi/locallang.php:search.prevNext
20.fontTag =
20.wrap = <div class="csc-searchTopPaging">|</div>
50 = TEXT
50.value = ###RESULT###
75 = TEXT
75.value =
80 = TEXT
80.data = LLL:EXT:sg_search/pi/locallang.php:search.prevNext
80.fontTag =
80.wrap = <div class="csc-searchBottomPaging">|</div>
90 = TEXT
90.value =
}
noResultObj = COA
noResultObj {
10.fontTag =
#10.wrap = <div class="csc-searchNoResult">|</div>
10.wrap = <p class="csc-searchNoResult">|</p>
}
next = TEXT
next.data = LLL:EXT:sg_search/pi/locallang.php:search.searchResultNext
prev = TEXT
prev.data = LLL:EXT:sg_search/pi/locallang.php:search.searchResultPrev
}
# ------------------------------------
# SG Search: Searchbox on top
# ------------------------------------
plugin.tx_sgsearch.searchform {
showOnResultPage = 28
showOnSearchPage = 29
wrap (
<form action="index.php" method="get">
<input type="hidden" name="no_cache" value="1" />
<input type="hidden" name="id"
value="{$plugin.tx_sgsearch.IDofResultPage}" />
|
</form>
)
content (
###SEARCH_WORD###
<input type="hidden" name="tx_sgsearch[how]" value="detail" />
<input type="hidden" name="tx_sgsearchs_and_or_type" value="and" />
<input type="hidden" name="tx_sgsearch[where][]" value="page" />
<input type="hidden" name="tx_sgsearchs_and_or_type" value="and" />
<input type="hidden" name="tx_sgsearch[where][]" value="lex" />
###SEARCH_HIDDEN###
<input name="Abschicken" value="Suchen" type="submit" alt="" />
)
search.word {
default = LLL:EXT:sg_search/pi/locallang.php:search.default
onclick = onfocus="if (this.value==this.defaultValue) this.value=''"
content = <input class="topsuchfeld" type="text"
value="###sword###" ###more### name="tx_sgsearch[sword]" size="20" />
}
}
# ------------------------------------
# SG Search: Plugin on page
# ------------------------------------
plugin.tx_sgsearch.form {
wrap (
<div class="searchbox">
<form action="index.php" method="get">
<input type="hidden" name="no_cache" value="1" />
<input type="hidden" name="id"
value="{$plugin.tx_sgsearch.IDofResultPage}" />
|
</form>
</div>
)
content (
###SEARCH_WORD###
<input type="hidden" name="tx_sgsearch[how]" value="detail" />
<input type="hidden" name="tx_sgsearchs_and_or_type" value="and" />
<input type="hidden" name="tx_sgsearch[where][]" value="page" />
<input type="hidden" name="tx_sgsearchs_and_or_type" value="and" />
<input type="hidden" name="tx_sgsearch[where][]" value="lex" />
###SEARCH_HIDDEN###
<input name="Abschicken" value="Suchen" type="submit" alt="" />
)
}
plugin.tx_sgsearch {
sgSearchFunc =
}
plugin.tx_sgsearch.keywords.default = 1
Würde mich sehr freuen, wenn mir da jemand helfen kann, gerne auch gegen
Bezahlung! da es sehr wichtig ist :(
Grüße, Basti
--
------------------------------------------
TYPO3 - TIPS - ANLEITUNGEN - NEWS - TYPO3
unter: http://blog.ingeniumdesign.de/
------------------------------------------
More information about the TYPO3-german
mailing list