[TYPO3-english] Indexed Search Auto completer (pmkisac) and macina searchbox
Jacco van der Post
jacco at id-internetservices.com
Wed Oct 14 14:50:00 CEST 2009
Hi,
I use the Indexed Search Auto completer (pmkisac 1.3.3) wich works great
for the indexed search page.
I try to make it work with Macina searchbox however I can't get it to
work. Strangely enough if I put the Macina searchbox together on 1 page
with Indexed search they both do auto complete.
The lib I use for the Macina Searchbox :
lib.searchbox = COA
lib.searchbox.10 = USER
lib.searchbox.10.userFunc = user_pmkisac
lib.searchbox.10.userFunc < plugin.tx_pmkisac
#id is in input field in searchbox.tmpl
lib.searchbox.10.userFunc.cssId = macinazoek
lib.searchbox.20 < plugin.tx_macinasearchbox_pi1
lib.searchbox.20 {
pidSearchpage = {$searchpage}
templateFile = {$tmplpath}searchbox.tmpl
}
I checked the source of a page with only macina searchbox and I saw that
there the JS seems to be messed up :
<script type="text/javascript">
/* <![CDATA[ */
window.addEvent("domready", function(){
var el = $("macinazoek");
if (el) {
var form = el;
for (var i=0;i<20;i++) form="form.getParent();" if=""
formnodename="FORM" break="" var="" sectionpid="section.getValue();"
section="$(" tx-indexedsearch-selectbox-sectionsxx=""
typesection="element" languageid="language.getValue();" language="$("
tx-indexedsearch-selectbox-langxx="" typelanguage="element"
mediaid="media.getValue();" media="$("
tx-indexedsearch-selectbox-media="" typemedia="element" ajaxurl=""
completer="new" autocompleterrequesthtmlel="" postdata="" :="" id:=""
11sp:="" sectionpidla:="" languageidme:="" mediaidsw:="" 1ml:="" 2mc:=""
10="" wc:="" 1="" minlength="" 2="" maxchoices="" useselection=""
markquery="" inheritwidth="" dropdownwidth="" 100="" multi=""
delimeter="" delay="" indicatorclass="" autocompleter-loading=""
injectchoice="" functionchoice="" text="choice.getFirst();"
value="text.innerHTML;" choiceinputvalue="value;" textset="" html=""
thismarkqueryvaluevalue="" thisaddchoiceeventschoice=""
sectionaddevent="" change="" function="" completeroptionspostdata=""
sp="section.getValue();" languageaddevent="" la="language.getValue();"
mediaaddevent="" me="media.getValue();"> */
</script>
On the page with Indexed Search, the above JS is displayed neat in the
source.
I do not have any other extensions installed and I use TYPO3 4.2.9
Any help would be appreciated, why is the JS messed up?
thanks
Jacco
More information about the TYPO3-english
mailing list