eZ Community » Forums » Install & configuration » eZfind Auto-Complete in Frontend
expandshrink

eZfind Auto-Complete in Frontend

eZfind Auto-Complete in Frontend

Friday 30 March 2012 10:22:30 am - 4 replies

I have installed ezfind and everything works fine for me but the Auto-Complete is not working in Frontend !

What should i do ?

I don't have this problem in admin Site

Modified on Friday 30 March 2012 10:23:57 am by Amir koklan

Friday 30 March 2012 10:37:36 am

Hi Amir, 

Do you get any specific JS error ?

Cheers,

Friday 30 March 2012 10:48:56 am

Warning: ezjscPacker::packFiles Mar 30 2012 10:44:52

Could not find: javascript/rightmenu_widthcontrol.js

Warning: ezjscPacker::packFiles Mar 30 2012 10:44:52

Could not find: javascript/leftmenu_widthcontrol.js

Warning: ezjscPacker::packFiles Mar 30 2012 10:44:52

Could not find: javascript/contentstructuremenu_dynamic.js

 

This is all i got in debugging about JS and Error !

Friday 30 March 2012 11:09:42 am

Try to track, in the "Network" panel of Firebug (or similar tool in Webkit/Chrome/Safari), the Ajax requests sent to the back-end. First there should be some, normally, and secondly : check what they return.

Cheers,

Friday 30 March 2012 3:48:28 pm

Hi Amir,

Activate templates debug and make sure the right template is used.

In this search template must be a javascript code like:
var autocomplete = new eZAJAXAutoComplete({ldelim}
    url: "{'ezjscore/call/ezfind::autocomplete'|ezurl('no')}",
    inputid: 'Search',
    containerid: 'mainarea-autocomplete-rs',
    minquerylength: {ezini( 'AutoCompleteSettings', 'MinQueryLength', 'ezfind.ini' )},
    resultlimit: {ezini( 'AutoCompleteSettings', 'Limit', 'ezfind.ini' )}

 

If you are using your own search template then you need to do some changes. Check these templates for example:

ezfind/design/admin2/templates/page_search.tpl

or

ezfind/design/ezwebin/templates/content/search.tpl

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu